This repository contains source code for building a Discord bot using Python.
- Clone the repository.
- Rename is the
.env.example
file to.env
in the Source directory. - Replace the
DISCORD_BOT_TOKEN
in the.env
file with your Discord Bot Token. - Run the
bot.py
file usingpython bot.py
command. - Install the Bot in your Discord server
- Pull the docker image using the command
docker pull anuraj/discord-bot:latest
. - Next run the docker container
docker run -d --name discordbot --env DISCORD_BOT_TOKEN="<ADD-YOUR-DISCORD-BOT-TOKEN-HERE>" anuraj/discord-bot:latest
- Install the Bot in your Discord server
- Build the docker image using the command
docker build -t <YOUR-DOCKER-HUB-NAME>/discord-bot .
Happy Coding 😊