My Discord bot :3 it sucks
If you would like to self host the bot, you can do so with the following steps:
Caution
When generating Bot Tokens and API Secrets, do not share them with anybody!
- Copy the
example-config.cfg
file, and rename the copied version toconfig.cfg
. This is your config file. - Enter the
config.cfg
file with a text editor, and change the values to fit you. We will generate a bot token in the next stage.
All Discord bots require a Discord Bot Token to function. The steps to get one are as follows:
- Go to the Discord Developer Portal and log in with your Discord Account.
- Create a new application and fill in the information required.
- Go to the
Bot
section, and generate a new bot. - Give your bot a username, and optionally, a PFP and banner.
- Copy the Bot Token. Go to the
config.cfg
file, and replace the value inbot-token
with your bot token. Due to security reasons, you will only be able to view the bot token once from Discord Developer Portal before having to generate a new one.
The following dependencies are required to run the bot:
py-cord, g4f, requests, aiohttp, bing_image_urls, discord_webhook, py-cpuinfo, curl_cffi, sympy, aiofiles
.
You can install these dependencies using PIP with the following command:
pip install py-cord g4f requests aiohttp bing_image_urls discord_webhook py-cpuinfo curl_cffi sympy aiofiles
Once you have have installed the required Python modules, generated your token, and filled in your config file, you can run the bot as follows:
- Navigate to the bot directory through the terminal.
- Once you are in the bot directory, run
python main.py
, and monitor for any errors in the terminal.
- nikolan - Main bot developer
- tom1212. - Helped take screenshots for the help command
- restartb - Helped improve and organise code, made config system, improved docs
- mat - Sand cat images
- expect - Added a few commands