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

Conversation

hargoniX
Copy link

No description provided.

@gdude2002 gdude2002 changed the title WIP PR from team nix and maffie Team 21 Mar 23, 2018
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.

A very simple implementation. But where's your extra command/s?

@hargoniX
Copy link
Author

It is in work, my partner is (or should be) doing research while i am extending our db

@hargoniX
Copy link
Author

Here you go @gdude2002

@hargoniX hargoniX closed this Mar 25, 2018
@hargoniX hargoniX reopened this Mar 25, 2018
@hargoniX
Copy link
Author

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):
Copy link
Member

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?

Copy link
Member

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.

Copy link
Author

@hargoniX hargoniX Mar 25, 2018

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)

return ("python", self.python_info, self.python_image)
else:
for key in self.db.keys():
if key.lower() == name.lower():
Copy link
Member

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

if key.lower() == name.lower():
return (key, self.db[key][0], self.db[key][1])
else:
key = random.choice(list(self.db.keys()))
Copy link
Member

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

@gdude2002 gdude2002 changed the title Team 21 Team 20 Mar 25, 2018
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