Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 4: Use discord.ext.commands to make a better bot #4

Open
JayDwee opened this issue Jul 19, 2021 · 1 comment
Open

Task 4: Use discord.ext.commands to make a better bot #4

JayDwee opened this issue Jul 19, 2021 · 1 comment

Comments

@JayDwee
Copy link
Member

JayDwee commented Jul 19, 2021

Describe the solution you'd like

  1. Create your ping command using ! as a command prefix (see slide 14)
  2. Create a command that says hello to you using your provided name (command: !hi Jack --> bot replies:hello Jack!)
  3. If a name isn't provided use the senders discord tag (e.g. !hi --> hello JayDwee!)
  4. Use slide 16 to help make a command that responds with the number of arguments provided, as well as returning them sorted in alphabetical order
  5. Split some of your commands into separate cogs (docs)

Docs: https://discordpy.readthedocs.io/en/latest/ext/commands/commands.html

@JayDwee
Copy link
Member Author

JayDwee commented Jul 19, 2021

(for Monday)
When task 4 is completed move on to this:

  • Clone the KoalaBot repo locally
  • Add your own bot token to the .env file as explained in the README.md file
  • Run KoalaBot (ensuring your previous bot is not running)
  • Follow the readme and try running our tests (without some API keys some of these tests will fail, but most should pass)
  • Spend the rest of the day playing around and getting familiar with Koala and its many features

If you get stuck look at the README.md and CONTRIBUTING.md files

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

No branches or pull requests

1 participant