Skip to content

HackTheMidlands/discord-bot-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot Workshop

Step 1: Login to Discord

Click this link to open Discord in your web browser and then sign in.

Step 2 - Get your personal token

When you’re logged in to Discord, click here to start creating your bot.

Step Screenshot
1. Click "New Application".
2. Enter a name for your bot.
3. Click the "Bot" tab on the left-hand side. Then click the "Add Bot" button.
4. Click "Yes, do it!".
5. Click "OAuth2".
6. Scroll down until you see "OAuth2 URL Generator".
7. Click "Bot" in the grid.
8. Click "Copy" and paste the URL into your web browser".
9. Select a server you want to add your bot to. You might want to create a new server to test it.
10. Go back to the Discord Developer Page, and click "Bot."
11. Click "Copy" to copy the bot's token to your clipboard.

If you get stuck, ask a volunteer for help!

Step 3 - Run the bot

  1. Click here to open the code for the bot. It can take a moment to be load!
  2. One it has loaded, double click on paste_your_token_here and press Ctrl-V to replace it with your bot's token. (as seen in the picture below)

  1. Press the run button (the green triangle at the top). The website first has to install some extra code - so it will produce lots of spam like this for short while before your bot starts:

  1. When it is done, the screen will clear and your bot will start up:

If all goes well, the message Bot ready! will appear.

Step 4 - Extensions

  1. Add error handling (!guess (with no arg) / !guess (with non-int arg))
  2. Send a picture!
  3. Make the coolest bot!