-
-
Notifications
You must be signed in to change notification settings - Fork 16
Team 20 #6
base: master
Are you sure you want to change the base?
Team 20 #6
Conversation
Fix Pipfile dependencies
Exclude virtualenv from Flake8 linting. Again.
[UPDATE] Ignored a silly rule from flake8.
Adding W503 and E226 to flake8 ignore list.
…wing syntax errors from ast.literal_eval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A very simple implementation. But where's your extra command/s?
It is in work, my partner is (or should be) doing research while i am extending our db |
Here you go @gdude2002 |
wooooops missclicked |
|
||
# Any additional commands can be placed here. Be creative, but keep it to a reasonable amount! | ||
@command() | ||
async def hiss(self, ctx: Context): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone executes this twice within a short period of time will there be an error, or will the sound play twice at the same time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to check the clients voice status before making it play more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discordpy appears to handle this fine.(just tested it)
bot/cogs/snakes.py
Outdated
return ("python", self.python_info, self.python_image) | ||
else: | ||
for key in self.db.keys(): | ||
if key.lower() == name.lower(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but you already lowered the name..?
bot/cogs/snakes.py
Outdated
if key.lower() == name.lower(): | ||
return (key, self.db[key][0], self.db[key][1]) | ||
else: | ||
key = random.choice(list(self.db.keys())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need the .keys()
. casting a dict to list will already return the keys.
key = random.choice(list(self.db))
No description provided.