Git Product home page Git Product logo

jumper-plugins's People

Contributors

aikaterna avatar assassin0831 avatar drapersniper avatar flame442 avatar flaree avatar hunterap23 avatar jackenmen avatar kennnyshiwa avatar kreusada avatar malarne avatar owocado avatar predaaa avatar qwazwsx avatar redjumpman avatar skeith avatar slickxz avatar thediscordhistorian avatar thewyn avatar tobotimus avatar trustyjaid avatar unseenmagik avatar vexed01 avatar xargsuk avatar zylvian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jumper-plugins's Issues

Pokedex no longer showing pokemon images

When using [p]pokedex pokemon <whatevername> it returns the correct dex info, but the image link shows up as https://img.pokemondb.net/s.png. There are no errors in red.log or the CMD window to report.

Error with heist

Was working fine until this came up:
Error in command 'heist play' - TypeError: Can't convert 'NoneType' object to str implicitly
Any help?

Store issues

  1. How does the process if buying work. Buy an item then what?
  2. Pending.. Can the id be numbers? Easier to type on mobile
  3. Setrole doesn't work for notifications
  4. What status options are there in pending
  5. Redeem didn't seem to do anything
  6. Inventory isn't working

Suggestions to improve raffle

There should be a settable limit to the amount of tickets one can buy for raffle, or a mode where only 1 ticket can be bought per person.

I was trying to use raffle to make a steam key giveaway and told my members to use !raffle buy 1 to join then a rebel used !raffle buy 69, which automatically makes said user a winner aka rigged raffle.

Also in the case of where only 1 ticket can be bought per person mode, !raffle buy should default to buying 1 ticket instead of displaying the help text for how many tickets to buy.

Heist issue.

`[16/04/2017 18:55] ERROR red on_command_error 375: Exception in command 'heist p
lay'
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\red2\Red-DiscordBot\cogs\economy.py", lin
e 256, in _get_account
return deepcopy(self.accounts[server.id][user.id])
KeyError: '295910482177425410'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "lib\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "C:\Users\Administrator\Desktop\red2\Red-DiscordBot\cogs\heist.py", line
505, in _play_heist
self.subtract_costs(settings, author, cost)
File "C:\Users\Administrator\Desktop\red2\Red-DiscordBot\cogs\heist.py", line
903, in subtract_costs
bank.withdraw_credits(author, cost)
File "C:\Users\Administrator\Desktop\red2\Red-DiscordBot\cogs\economy.py", lin
e 152, in withdraw_credits
account = self._get_account(user)
File "C:\Users\Administrator\Desktop\red2\Red-DiscordBot\cogs\economy.py", lin
e 258, in _get_account
raise NoAccount()
cogs.economy.NoAccount`

I have an account though, it doesn't make sense.

When I do !heist play, it just says "Success".

Maximum on chips saved?

Would it be possible to place a limit on how many chips can be saved/converted before having to cash them out into credits? Am having users who are hitting over 1m chips XD

Bug in Casino: blackjack

Occasionally, player(self, args) on line 677 in the casino cog fails without raising an error, resulting in an empty player hand and a dealer victory.

On a marginally related note, I'd suggest making "stay" the default behavior if they timeout for line 635.

Bot stats - tuple index out of range

Does this error happen because of having too many chips? or is it a bug?

ERROR red on_command_error 181: Exception in command 'casino stats' Traceback (most recent call last): File "C:\Users\Dex\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped ret = yield from coro(*args, **kwargs) File "cogs\casino.py", line 501, in _stats_casino "{}".format(membership, chip_name, chip_balance)) IndexError: tuple index out of range

Shop cog suggestions

Can you make an alert for server owner and admin to get notified in dm when they redeem their item?

For roles is it possible to make a temporary role for certain amount of days that can be kept. (Almost like a VIP area)

[Shop/Feature Request] - Buy Random Shop Item

I'd love to have a feature in the shop where you can buy a random item in the shop for a certain amount of credits and then possibly weight the items in the shop by a percentage chance to get them. My idea for this is basically a Pokemon shop where you have all of the Gen 1 Pokemon as items in the shop then you buy a random one for 100 credits or something. Then you have the rarity of Pokemon so a Pidgey would have a weight of 1 for it being common but Blastoise would have a rarity of 200. Another feature could be to have you trade in a certain number of items to get a different one. So say you have three Pidgey, you can trade it in for a Pidgeotto. It doesn't even have to be Pokemon themed. Say you're building a house on the Discord. Buy 5 pieces of wood. Trade in 5 pieces for a wall. 5 walls trade in for a foundation. etc etc etc. It'd be a lot of fun to have collectible shop related things just for fun. I see a lot of ways that this could be used.

Issue with buymsg In shop items

Any shop item that has infinite quantity reaches this error when trying to set a buymsg:

Error in command 'setshop buymsg' - ValueError: invalid literal for int() with base 10: '∞'

Heist: Stuck in underway

After the most recent update (could be earlier but I just updated my cogs today), it kept on being stuck in “A heist is already underway. Wait for the current one to end to plan another heist.” Any idea why? !heist reset used to work when things stuck but not at the moment.

Typo in Heist

There is a typo in Heist. Specifically, the message:

I can't remove you from jail if your not in jail.

should be:

I can’t remove you from jail if you’re not in jail.

Thanks!

New Road Map

Off We Go...

This will be the new cog road map for Jumper-Cogs heading into 2017. I want to say I have really enjoyed making cogs for Red Bot, and I think that it is the best discord bot you can have. The Red community has really grown so I jumped on board as a cog creator in April-May of 2016 and I only see it getting bigger. Recently I got a really great opportunity to join a project unrelated to Discord bots. This is not an indication that I plan to stop making cogs or stop being a part of the Red community, but I will be sending out fewer updates and new content for a while.

Before everything kicks off with my new project there are a few things I wanted to detail out in a road map for Jumper Cogs that will be completed before my hiatus. Thank you to everyone for all your support and for any server that might have enjoyed anything I created. Feel free to message me or post suggestions/bugs in a new issue.

These Old Dogs Still Gotta Few Tricks

Casino (COMPLETE)

  • Optional payday function for casino like in Economy, but gives chips
  • Wipe a server based on name for bot owners with multiple servers
  • Logging to provide some level of moderation for those who use casino in a more serious manner
  • Implement casino membership levels as rewards granting access to games, reduced cooldowns, etc
  • Thresholds to limit winnings
  • New game
  • Auto updater for memberhsips

Heist (Complete)

  • Templating to allow a bot owner to change the theme of heist. Similar system to how trivia can load different user created Q&A
  • Individual success for a heist will increase as you near the crew cap for that bank and reset when you meet the requirements for the next level up.
    - [ ] Add items for purchase that can affect the heist. Example bullet proof vest will prevent death, but you will still go to jail on an outcome that would normally cause death.

Pokemon (Complete)

  • Add learn set, a list of TM's/HM's that can be learned
  • Refactor the searches to optimize performance
  • Possibly change the output to an embed for some searches.

Raffle (Pushed for V3 rewrite of Red Bot)

~~- [ ] Expand requirements
~~- [ ] Add more payment options
~~- [ ] Localization
~~- [ ] Refactoring

Lottery (Complete Rewrite)

  • Expand Requirements
  • Refactoring

Out With The Old And In With The New

Auction House

Cog that integrates with shop that allows you to post items for sale. Considering cross integration with servers that are pooled together. Example, you add server 1, 2, and 3 to a shard that shares an Auction House.

MiniDnD

Really big cog that let's you play a scaled down version of DnD. Nearing testing phase!

Cookie

Sorry to bother you with cookie again ^^
If you give a cookie to a person, who has no account, the person will still loose the cookies, but no one will get them. So they get deleted.
Is a nice troll-function to delete all the cookies while annoying the others.

Casino: New game request: RNG gambling

Hi—

You know how Red natively support the !roll command + use it to generate numbers? Members on my server wanted to gamble using it. Right now we are doing it manually by having a number of people guess numbers and then if they guessed e.g. 1-100 right, I manually add credits to them using !bank set — but if would be pretty cool if we can have something like that.

Maybe even for lottery — I actually can’t get your lottery cog working so I’ve uninstalled it but something simple like guess a series of numbers (1-6) (1-6) (1-6) might work neatly also. Or just a range (1-100) or (1-10) and give different payouts depending on the bet amt would be sweet.

Thanks!

Membership Creation progress doesn't work (casino cog)

TypeError: string indices must be integers
  File "discord/ext/commands/core.py", line 50, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "/home/genisyn/Red-DiscordBot/cogs/casino.py", line 1137, in _createmembership_casino
    if int(access.content) in [x["Access"] for x in list(settings["Memberships"])]:
  File "/home/genisyn/Red-DiscordBot/cogs/casino.py", line 1137, in <listcomp>
    if int(access.content) in [x["Access"] for x in list(settings["Memberships"])]:

Exception in command 'casino createmembership'

When doing this
https://cdn.discordapp.com/attachments/240302038565519361/288672329347891210/dfdf.JPG

casino bug

When I use [p]casino info, I get this: "Error in command 'casino info' - HTTPException: BAD REQUEST (status code: 400)". I'm a noob at this stuff, so I'm not able to solve this myself. The command worked fine before. Any help will be appreciated! 😃

Heist: KeyError when player pool too big

Hi—

Not entirely sure why but I am getting this error:

Apr 17 17:30:20 ubuntu python3[1745]: [17/04/2017 17:30] ERROR red on_command_error 375: Exception in command 'heist play'
Apr 17 17:30:20 ubuntu python3[1745]: Traceback (most recent call last):
Apr 17 17:30:20 ubuntu python3[1745]:   File "lib/discord/ext/commands/core.py", line 50, in wrapped
Apr 17 17:30:20 ubuntu python3[1745]:     ret = yield from coro(*args, **kwargs)
Apr 17 17:30:20 ubuntu python3[1745]:   File "/home/sml/Red-DiscordBot/cogs/heist.py", line 522, in _play_heist
Apr 17 17:30:20 ubuntu python3[1745]:     start_output = self.message_handler(settings, crew, players)
Apr 17 17:30:20 ubuntu python3[1745]:   File "/home/sml/Red-DiscordBot/cogs/heist.py", line 596, in message_handler
Apr 17 17:30:20 ubuntu python3[1745]:     message_type = settings["Config"]["Crew Output"]

This happens after the 12th person tried to join.

I will try to delete my data folder right now to see if it solves the problem

Heist: Joining a crew does not display timer info

Previously when you join a crew, the message tells you a timer when the heist will begin. It no longer shows that info and I can never verify whether the heist has begun.

Can you look into that?

Thanks!

Fee for exchange

suggestion:
Adding a fee when exchanging from chips to credits and vice versa

[Pokedex] Broken image links

Searching for a Pokémon will return an image link, but the link doesn't start with https:, thus not forming a full link or generating a display in Discord.

Casino Suggestions/ Game cog suggestions

Here are some Casino Game suggestions

  1. Spin the wheel
    Info: Users spin a wheel (that has a entry fee that can be set by admins) depending on where the wheel's needle stops users will win a prize. Prizes can be customized by admins and could include money prizes, Chip prizes, Intergration with the Shop cog maybe?

Here are some Game cog suggestions:

  1. Hangman
    Hangman is simply hangman with customizable words.
  2. Fill in the blank
    This game is to fill in a template story with the users own characters, descriptions and actions. The users take turns with one or more people to choose a word or phrase to complete the story. Then once the bot is done , the story is read out. To make it even better maybe allow users to toggle TTS on or off. so it reads it out loud. Who ever wants to play can get 150 credits for helping to "shape" the story.
    Although there are lots of variations on the story, it usually follows a pattern like this:

Adjective for a person
Name of a person
Met (in a standard game, two characters always meet but you could adjust this to another verb)
Adjective for a person
Name of person
Where they met
First person wore
Second person wore
First said to second
Second replied
The consequence was... (a description of what happened after)
What the world said

  1. Tic Tac Toe.
    Simple Tic tac toe,

Development Checklist 2

Development Checklist

This list will attempt to serve as a way to monitor progress / check on what is being worked on.
If you have a cool idea you want added to the list send me a DM/PM on discord and I'll see if I can add it to my list.

New Cogs

Pokemongo*

Description: Pokemongo data cog

  • Pokemon Info
  • Fast attacks Info
  • Charged attacks info*
  • IV calculator
  • Closed Testing (Send cog to close friends)
  • Send to git. Complete

Cog Revisions


Lottery 2.0 (Complete cog rewrite)

  • Multi-server support! Host lotteries on multiple servers with the same bot.
  • Nickname support.
  • Restrict lottery sign-up(for membership) by server role
  • Restrict lotteries to members or allow anyone on your server to participate
  • Can turn on auto-account freeze, will freeze a lottery membership who lost their server role
  • Frozen accounts can be reactivated with a user command if they have the set role
  • Can optionally set a timer for your lotteries. No need to manually end the lottery.
  • If restricted to lottery members, will @mention the set role to notify the lottery is on-going
  • Use dataIO instead of fileIO
  • Closed Testing (Send cog to close friends)
  • [x] Send to git. Complete
    Note Powerballs will come as a later update.

Casino

  • New game
  • Membership calculator based on chip amount
  • optionally restrict games based on casino membership
  • Possible migration of roulette into casino
  • Upgrade to using dataIO instead of fileIO
  • Fix blackjack issues. (FOR GOOD)
  • Change default timeout on blackjack to "Stay"

Pokedex

  • add learnset

Shop

  • Item quantities
  • Upgrade to dataIO from fileIO

*** Means this is currently being worked on**

HTTP error 400 when using <p>shop redeem

Command functions as expected, but on execution the following error is thrown to the channel the command was issued from:

Error in command 'shop redeem' - HTTPException: BAD REQUEST (status code: 400): Cannot send messages to this user

cookies

Deleting or settings IDs "on ice" if a person leave the Discord.
Currently the command [p]steal will not work, until you delete the person who left, out of the "database"

Development Checklist 1 [Complete]

Development Checklist

This list will attempt to serve as a way to monitor progress / check on what is being worked on

New Cogs

Roulette*

Description: Casino style roulette game

  • Start ground work for code
  • Create game system
  • Add betting commands
  • Store player bets
  • Payout system
  • Rules info
  • Board diagram
  • allow admins to change config settings
  • Testing Placed on my repo. Will move to revision section after feedback/improvements

Blackjack

Description: Casino style roulette game

  • Start ground work for code
  • Create game system
  • Develop player system
  • Add betting commands
  • Store player(s) bets
  • Payout system
  • Testing

Casino

Description: One file for all casino games

  • Start ground work for code
  • Merge casino games
  • Allow admins to change casino name
  • Allow opening/closing of casino
  • Create chip system
  • Leader board ranking system
  • Streamline info commands for casino
  • Testing Placed on my repo. Will move to revision section after feedback

Heist

Description: Deepbot's Heist System

  • Start ground work for code
  • Create game system
  • Develop player system
  • Add betting commands
  • Add Config Commands
  • Create bank tier system
  • Create outcomes
  • Organize commands *
    - [ ] Add roles for players to pick (moving this to an added feature, will not be in for release)
  • Add separate points for banks
  • Rules info
  • Internal Testing*
  • Testing Placed on my repo. Will move to revision section after feedback

Raffle system

Description: Players can buy tickets with points which increases their chance to win

  • Start code
  • Create commands
  • Create players dictionary to hold tickets
  • Develop raffle system
  • Testing* Placed on my repo. Will move to revision section after feedback

Cog Revisions


Lottery

  • add option to give away points to the winner

Tibia

  • add Hunted list / Friend list

Shop

  • Increase shop item limit from 50 (Can now have up to 100 items...ish)
  • change pending list output
  • add toggle for sorting shop items by alphabetically or item price
  • allow changing of the notify role
  • add trading

*** Means this is currently being worked on**

lottery issue and probably a suggestion

I believe I have the latest version of lottery

Issue : Lottery will try to give a winner their prize even though they have no bank account.
image

Suggestion : Can we escape / prevent using @ on role argument for lottery? Because it result in double @@ when we use @everyone
image

Heist: add option to split rewards (Feature request)

we run Heist on our server, and I am tempted to write a command myself so I can easily transfer X amount of credits among a number of users after we joined a heist together and 1+ people won.

Then I realize that it would actually be better if you’ll just add that feature to your cog. The reason being that a command like that would work if only 1 person wins, but it gets very tricky when 2 or 3 people won.

Feature: create mode that will auto-split the credits won to people who have participated in the heist. Say the crew won 20k altogether and 8 players joined the crew. Each person will automatically get 20k/8 credits. Right now every time someone won, the chat is flooded by messages asking people to split the credits and it’s absolutely chaotic. Having this feature would solve the issue.

Please consider adding it!

Animeset cog issue

There is a credential issue going on with it. I typed my username and password correctly and its staying its not right. I went and made a new one to see if its an issue with my account and still not working. Unloading and reloading the cog doesnt seem to help either. But thank you for taking the time to look over on the issue.

animelist: returns wrong link & picture

Using the 'manga' command to find manga only sort of works:

It returns the proper description, but the link and the preview picture is actually wrong.

Here's a picture of the issue:
2016-12-06_1300x637

This appears to happen every time calling the 'manga' command

shop stuff

there is a glitch where the bot automatically deletes it's own list message or buy things, so i can't see what is wrong or what i need to do

Colored Items in Shop [Feature Request]

As I think ahead to the shop update, it would be pretty cool to have color coordinates items in the shop. Since I really really hope you implement the random item function for the shop, it would be cool to have different colored items to be different tiered items. It would also just be pretty :) Not sure how hard that is to code though.

diceroll modifier can't be less then 0

Most gaming systems make use of negative modifiers, so why doesn't this allow for that?

[13/04/2017 15:50] ERROR red on_command_error 375: Exception in command 'dtable roll'
Traceback (most recent call last):
  File "lib\discord\ext\commands\core.py", line 50, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "n:\Red-DiscordBot\cogs\dicetable.py", line 58, in _roll_dtable
    raise NegativeValue("Modifier can't be less than 0.")
cogs.dicetable.NegativeValue: Modifier can't be less than 0.

Using current versions of RedDiscord and Diceroll

Casino Wipe not working regardless of server name

AttributeError: 'NoneType' object has no attribute 'name'
File "discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "/home/genisyn/Red-DiscordBot/cogs/casino.py", line 1293, in _wipe_casino
server = [self.bot.get_server(x) for x in servers
File "/home/genisyn/Red-DiscordBot/cogs/casino.py", line 1294, in
if self.bot.get_server(x).name == servername][0]

Exception in command 'casino wipe'

Tried to wipe the casino on 3 servers and spelled them right and made sure and this error comes up
Error in command 'casino wipe' - AttributeError: 'NoneType' object has no attribute 'name'

Also if you can, maybe polish up the existing error messages like
Error in command 'blackjack' - KeyError: 'Access Level'

Feature Request - Heist - List Heist Participants

Hi Redjumpman,

Our Discord server has been using your "Jumper-Cogs Heist" functionality for a while now, and has really been enjoying the game! A feature that I was hoping to request was the option to add an additional bot message to list all the participants for a single instance of a heist, probably placed during the Heist Start message.

If implemented, this would most likely be an toggleable feature, as thinking of server instances where the userbase is very large, this extra text line might be quite distracting.

Thanks for your time! :)

Heist interferes with other servers

If i use heist on one channel on Discord, it will not work for another channel on Discord, as it will be already in progress. Basically all channels are in one heist. Any fix?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.