Creating a Discord Bot with Dires for Python
-
Create an Account:
Visit our client panel at https://client.diresnode.com/ and sign up for an account if you haven't already. Once logged in, navigate to "Servers." -
Set Up Bot Hosting:
Click the "+" icon to add a new server. Choose "Bot Hosting" and select "Python" as the preferred language. Pick the desired node for your bot. -
Access Server Files:
Now, head over to our control panel at https://panel.diresnode.com/ using the same login details as the client panel. Locate your server and navigate to "File Managers." -
Upload Bot Files:
Use the File Manager to upload your Python bot's files. This includes your bot's main script (e.g., main.py), dependencies, and other necessary files. -
Create 'requirements.txt' file:
To specify Python package dependencies, create a file named requirements.txt. This file lists all Python packages required for your bot to run.
The format is package_name==version. In this example, discord.py is the package name, and 2.3.2 is the specific version required. You can add more packages in the same format, each on a new line. -
Example of requirements.txt:
1. discord==2.3.2
2. pymongo -
Useful Links:
Create Server Panel Login -
Not Helpful?
Support