- Clone the repository
$ git clone https://github.com/nisbweb/Discord-Bot-Making-Workshop.git
- Install Discord.py python module for discord bots.
or for Linux
$ pip install discord.py
Mac$ pip3 install discord.py
$ python3 -m pip install discord.py
- Get your bots token from the discord developers page, By selecting your application , going into the bots navigation menu and copying the secret token generated.
- Add the token in the files at the places mentioned.
- Add the bot to the server, by generating a link in the OAuth tab of the bot page.
- Run the python file
$ python <file name>.py
- Host the bot so that it will constantly run, Heroku, Okteto, Civo , AWS etc are all viable options
- Make multipurpose bots with a varied range of commands.
- Add logging and error handling in the bot.
- If you get a invalid certificate issue,
- open Internte explorer in administrator mode
- go to www.discord.com
- click on the padlock next to the url
- View certificate and install certificate