redjumpman / jumper-plugins Goto Github PK
View Code? Open in Web Editor NEWPython Modules for Discord bot
License: GNU General Public License v3.0
Python Modules for Discord bot
License: GNU General Public License v3.0
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'
`[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".
http://i.imgur.com/UFdzW8k.png
No errors in console or anything.
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)
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!
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
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! 😃
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.
Description: Pokemongo data cog
*** Means this is currently being worked on**
This list will attempt to serve as a way to monitor progress / check on what is being worked on
Description: Casino style roulette game
Description: Casino style roulette game
Description: One file for all casino games
Description: Deepbot's Heist System
Description: Players can buy tickets with points which increases their chance to win
*** Means this is currently being worked on**
https://gyazo.com/69daccfe00410e75852ab8e028808e86 its giving me that issue with bank level 5 in heist again. I unloaded and reloaded the command and tried again same issue.
With the latest update, it just says “Success” when I use !heist play
QoL spelling issue.
http://i.imgur.com/ufcxnv3.jpg
http://i.imgur.com/z3k0NNH.jpg
There are 5 instances of this in casino.py.
Edit: There are 2 instances of this for "recieved" and 3 for "recieve"
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
As discussed in the server, instead of typing in the shop item name can choose via number. Also the management interface polished up into a nice window as attached :)
https://cdn.discordapp.com/attachments/247643449665257472/307183701245034497/unknown.png
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.
He man i on accident added a item to a store that was really really long. Because of this the
shop option is not working anymore.
I found no way to reverse this even when re installing can u help me out?
http://imgur.com/HNcRTC5
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! :)
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.
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
suggestion:
Adding a fee when exchanging from chips to credits and vice versa
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.
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?
Running the store command creates an error in the console.
TypeError: string indices must be integers.
Im afraid that I'am not much more use than this,
Thanks
https://i.gyazo.com/thumb/1200/_305116b5078a11d2b4785467d2ff1767-png.jpg
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.
Was working fine until this came up:
Error in command 'heist play' - TypeError: Can't convert 'NoneType' object to str implicitly
Any help?
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
Bot pming when status is updated.
!complete command which marks the item as finished and deletes.
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.
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.
~~- [ ] Expand requirements
~~- [ ] Add more payment options
~~- [ ] Localization
~~- [ ] Refactoring
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.
Really big cog that let's you play a scaled down version of DnD. Nearing testing phase!
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"
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.
The way it looks in the code, it appears as if raffles aren't server-specific in the way they're stored to disk in their settings file
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!
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.
There is no error log, the uptime command does not log the restart, but the bot goes offline/online several times.
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!
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
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
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.
Cause is https://github.com/Redjumpman/Jumper-Cogs/blob/master/cookie/cookie.py#L114
Its because when it defaults to random steal (None) it has not bot attribute
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
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!
http://i.imgur.com/XqHnxlO.png
This one shows that, after I set a variable, it doesn't update it in the info.
http://i.imgur.com/4lx2NoN.png
This one shows that, even trying to do !heist play while you were jailed, it shows your jail time is non-existent and tells you to !heist release, upon doing so, you're told you have more jail time?
Here are some Casino Game suggestions
Here are some Game cog suggestions:
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
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.
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: '∞'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.