This repository has been archived by the owner. It is now read-only.
Team 2 #18
Open
Team 2 #18
Conversation
| self.bot = bot | ||
|
|
||
| async def get_snek(self, name: str = None) -> Dict[str, Any]: | ||
|
|
gdude2002
Mar 25, 2018
Contributor
Extra space here that should be removed
Extra space here that should be removed
bot/cogs/snakes.py
Outdated
|
|
||
| @command(name="get") | ||
| async def get(self, ctx: Context):#, name: str = None): | ||
|
|
gdude2002
Mar 25, 2018
Contributor
Data retrieval needs to be in the get_snek() method.
Data retrieval needs to be in the get_snek() method.
bot/cogs/snakes.py
Outdated
| # Any additional commands can be placed here. Be creative, but keep it to a reasonable amount! | ||
|
|
||
| @command(name="snakerandom") | ||
| async def SnakeRandom(self, ctx: Context, name: str = None): |
gdude2002
Mar 25, 2018
Contributor
You need to be using snake_case for the function name here.
You need to be using snake_case for the function name here.
bot/cogs/snakes.py
Outdated
| @command(name="snakerandom") | ||
| async def SnakeRandom(self, ctx: Context, name: str = None): | ||
| # snakes=['Cobra','Python','Anaconda','Black Mamba','Rattle Snake'] | ||
| randsnake = random.choice(['cobra', 'python', 'black mamba']) |
gdude2002
Mar 25, 2018
Contributor
Could do with a few more snakes :P
Could do with a few more snakes :P
bot/cogs/snakes.py
Outdated
| embed.add_field(name="Expectation", value=f"@{ctx.author} expected {name}", inline=False) | ||
|
|
||
| if randsnake == "python": | ||
|
|
gdude2002
Mar 25, 2018
Contributor
Extra blank line here, should be removed
Extra blank line here, should be removed
bot/cogs/snakes.py
Outdated
|
|
||
| if randsnake == "python": | ||
|
|
||
| return await ctx.send("Your a lucky dude !", embed=embed) |
gdude2002
Mar 25, 2018
Contributor
You're
You're
gdude2002
Mar 25, 2018
Contributor
Also, extra space before the ! should be removed
Also, extra space before the ! should be removed
bot/cogs/snakes.py
Outdated
| return await ctx.send("Shiny liitle fella !", embed=embed) | ||
|
|
||
| @command(name="randname") | ||
| async def RandName(self, ctx: Context, name: str = None): |
gdude2002
Mar 25, 2018
Contributor
Should use snake_case here
Should use snake_case here
| p = len(name) | ||
| result = "" | ||
| front_back = 1 | ||
| if front_back == 1: # so the users name is substring from the front and snake random substring from back |
gdude2002
Mar 25, 2018
Contributor
Would be clearer with a blank line above this
Would be clearer with a blank line above this
Pipfile
Outdated
| @@ -8,6 +8,8 @@ name = "pypi" | |||
| aiodns = "*" | |||
| aiohttp = "<2.3.0,>=2.0.0" | |||
| websockets = ">=4.0,<5.0" | |||
| wikipedia = "*" | |||
| wikiapi = "*" | |||
gdude2002
Mar 25, 2018
Contributor
Are you guys using these modules? If not, please pipenv uninstall them.
Are you guys using these modules? If not, please pipenv uninstall them.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
ok still need editing ,the random name meathod still need editing :)