-
-
Notifications
You must be signed in to change notification settings - Fork 16
Team 7 #2
base: master
Are you sure you want to change the base?
Team 7 #2
Conversation
Fix Pipfile dependencies
Exclude virtualenv from Flake8 linting. Again.
No commits yet? Hmm. |
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.
No commits? Did you forget to push?
""" | ||
|
||
|
||
async def get_json(url): |
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.
Why not json.loads inside this function so that you don't have to repeat code in future usages of this function?
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.
Done.
bot/cogs/snakes.py
Outdated
if name in WikiListener.get_all_snek(): | ||
return True | ||
else: | ||
return False | ||
|
||
@command() | ||
async def get(self, ctx: Context, name: str = None): |
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 should add some documentation to the command using docstrings.
@command
async def get(...):
"""Command info here"""
...
bot/cogs/snakes.py
Outdated
This should make use of your `get_snek` method, using it to get information about a snake. This information | ||
should be sent back to Discord in an embed. | ||
quemoji = ['🇦', '🇧', '🇨', '🇩'] | ||
question = ['Which snek is the sneakiest snek?', '🇦Cobra\n\n🇧Regular Snek\n\n🇨Python\n\n🇩<Cobra></Cobra>', '🇨'] |
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.
Any reason for Cobra being in <
and >
?
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.
No reason at all. I am still testing the features the questions will be in a seperate file. Probably json.
.vscode/settings.json
Outdated
@@ -0,0 +1,6 @@ | |||
{ |
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.
Don't think this file should be here...
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.
Yeah, accident. Deleted now.
[UPDATE] Ignored a silly rule from flake8.
You code is failing to lint. Please see Travis for more information. |
…g. (#74) Original PR: python-discord/code-jam-1#2 Completes task: https://app.clickup.com/754996/757069/t/2ww7u
No description provided.