Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Team 7 #2

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Team 7 #2

wants to merge 19 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 23, 2018

No description provided.

mushfikurr and others added 3 commits March 23, 2018 00:22
Exclude virtualenv from Flake8 linting. Again.
@lemonsaurus
Copy link
Member

No commits yet? Hmm.

Copy link
Contributor

@gdude2002 gdude2002 left a 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):
Copy link
Member

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

if name in WikiListener.get_all_snek():
return True
else:
return False

@command()
async def get(self, ctx: Context, name: str = None):
Copy link
Member

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"""
    ...

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>', '🇨']
Copy link
Member

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 >?

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.

@@ -0,0 +1,6 @@
{
Copy link
Member

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...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, accident. Deleted now.

@gdude2002
Copy link
Contributor

You code is failing to lint. Please see Travis for more information.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants