A simple discord bot created to learn Python
- Create a Bot application at Discord Developer Portal and copy client secret
- Software
Python 3.9 or higher
Make
Docker
(optional)
-
Clone the repo:
git clone https://github.com/scamper07/BroDiscordBot.git cd BroDiscordBot
-
Setup virtual environment
make setup-venv
-
Activate the environment
a. On Linux
source bot-env/bin/activate
b. On Windows
bot-env\Scripts\activate
-
Install package requirements
make setup
-
Save client secret in
DISCORD_BOT_TOKEN
environment variable -
Start the bot
make run
Or
- Run the following command
docker-compose up -d --build --force-recreate bro
Done!