- Machine setup (install Python 3 and pip)
- Discord setup (create a bot account and add it to servers)
- dizbot usage (generate bot code using dizbot)
You can skip this section if you already have Python 3 and pip installed on your machine
- Open command prompt if on windows or open Terminal if on Mac or Linux, and run
python3 -v
to check if you already have Python. If it prints out the version, you are done - Otherwise download and install the latest Python 3 version for your OS
- Pip is usually installed with Python 3 >= 3.4. To verify, run command
pip -v
. If it prints out the version, you are done - Otherwise, you can download get-pip.py
- Open command prompt or terminal and navigate to the folder containing the
get-pip.py
file. Learn how to do it on Windows and/or Mac/Linux - Run the command:
python get-pip.py
- Confirm installation by running
pip -v
If you already have a bot and its client token created on discord's developer portal, you can skip this section
- Make a discord account if you haven't already
- Go to developer portal and click on the
New Application
button on the top right - Create the application and go to the
Bot
section and build a bot - Copy and securely save your bot's client token
- Go to OAuth2 section, select the bot scope and add required permissions. Copy the generated URL and paste it into your browser (or send it to your server's admin)
- Add the bot to a server you admin by following the instructions in this page
- Congrats you have setup your new bot!
- Install dizbot by running
pip install dizbot
in command prompt or terminal - Navigate to the directory you want your bot files to be in
- Command
dizbot run
will walk you through adding functionality to your bot and generate bot code - You can add the client token you saved in step 4 of Discord setup through the command line, or add it in the
client_token.txt
file that dizbot creates - Run command
python3 bot.py
to start the bot - Test out your bot by running a command in the discord server your bot is in!