- This section of the setup tutorial shows you how to install the latest version of Python. If you already have python installed there is no need to reinstall it and you may proceed to the next section.
-
Press this link to go to the python installation page and press the "Download Python" button.
-
After opening the installer, if the checkbox that says "Add python.exe to PATH" is unchecked, make sure to check it.
- Press the "Install Now" button to proceed with the installation.
- After the installation is complete, restart your computer.
-
Open the folder that the bot's source code is inside and right click to open the context menu.
-
Click the "Open in Terminal" button to open a new terminal window.
- Once the terminal window opens, enter
pip install -r requirements.txt
into the terminal window as shown in the screenshot below.
- Wait for the libraries to install and proceed to the next section (you may leave the terminal window open as it will be used in the next section).
-
Opening a terminal window. Skip this if you already have a terminal window open.
-
Open the folder that the bot's source code is inside and right click to open the context menu.
-
Click the "Open in Terminal" button to open a new terminal window.
-
-
Running the Bot
- Create a
.env
file in the bot's directory as shown below.
- Open the
.env
file in a text editor and type inTOKEN=
followed by your bot's token. If you do not know how to find your bot's token, please follow this guide.
- Finally, to start the bot, simply type
python main.py
into the terminal window as shown in the screenshot below.
- Create a
🎉 Congratulations! 🎉 You have finished setting up your bot! If everything was done right you should now see your bot online in the server it's in, if you have a problem with the bot, please create an issue here.