This is a small bot for a private discord server. The main codebase is written in Python, and the bot is currently hosted in Heroku with auto deployment from the main branch. To interact with discord discord.py is used, you can access its documentation at discordpy.readthedocs.io.
- Create your bot at the Discord Developer Portal and get the bot token
- Add the token as an environment variable :
- Linux
export DISCORD_TOKEN=your-token-here
- Windows ¯\_(ツ)_/¯ (good luck...)
- Linux
- Install python3
- Clone this github project
git clone https://github.com/EduardoFAFernandes/ConfraBotDiscord.git
or just download the zip and extract it - Install dependencies with the following command:
pip install -r requirements.txt
- Start the bot using
python main.py
The bot is using the Cog extension from the discord package to group similar commands if you have just a random command you can use the utils.py cog.
See this Cog tutorial in the documentation on how to add commands
When you finish your cog you will need to register it in the main file.
bot_cogs = [
greetings.Greetings,
utils.Utils
#add your cog here
]