★ wanayoo — archive 1999 https://github.com/python-discord/code-jam-1/pull/18Nouvelle recherche | Portail wanayoo
Skip to content
This repository has been archived by the owner. It is now read-only.

Team 2 #18

Open
wants to merge 32 commits into
base: master
from
Open

Team 2 #18

wants to merge 32 commits into from

Conversation

@RohanJnr
Copy link

@RohanJnr RohanJnr commented Mar 24, 2018

ok still need editing ,the random name meathod still need editing :)

RohanJnr and others added 12 commits Mar 23, 2018
HarjotR
HarjotR
@gdude2002 gdude2002 changed the title Iceman-Rags team 2 !! Team 2 Mar 24, 2018
self.bot = bot

async def get_snek(self, name: str = None) -> Dict[str, Any]:

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

Extra space here that should be removed


@command(name="get")
async def get(self, ctx: Context):#, name: str = None):

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

Data retrieval needs to be in the get_snek() method.

# 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):

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

You need to be using snake_case for the function name here.

@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'])

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

Could do with a few more snakes :P

embed.add_field(name="Expectation", value=f"@{ctx.author} expected {name}", inline=False)

if randsnake == "python":

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

Extra blank line here, should be removed


if randsnake == "python":

return await ctx.send("Your a lucky dude !", embed=embed)

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

You're

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

Also, extra space before the ! should be removed

return await ctx.send("Shiny liitle fella !", embed=embed)

@command(name="randname")
async def RandName(self, ctx: Context, name: str = None):

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

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

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

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 = "*"

This comment has been minimized.

@gdude2002

gdude2002 Mar 25, 2018
Contributor

Are you guys using these modules? If not, please pipenv uninstall them.

LaVieEstDure and others added 13 commits Mar 25, 2018
removed
import aiohttp
RohanJnr added 4 commits Mar 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.