This repository contains the required files to build a Docker container, which is running a python discord bot.
To get started with this bot, you will need to have Docker installed on your system. You can download Docker here.
Follow these steps to run the bot:
- Clone the repository using the following command:
git clone https://github.com/Levy-Y/docker-discord-bot
- Navigate to the directory using the following command:
cd docker-discord-bot
-
Open the docker-compose.yml file and replace YOURTOKEN with your Discord bot token.
-
Run the following command to build the Docker image:
docker build ./
- To start the container enter the following command:
docker-compose up -d
(Note: this will start the container in detached mode)
You can also just run the docker-compose_NO-BUILD.yml file after cloning this repository, like:
docker-compose -f docker-compose_NO-BUILD.yml up -d
(Note: you'll need the bot.py otherwise the command will exit)
The bot will now be running and ready to respond to commands. You can add the bot to your Discord server by creating a new application and adding a bot to it. Follow the steps outlined in the Discord Developer Portal to create a new application and add a bot to it.