Docker
The GitHub repository has a handy Dockerfile which makes installation with Docker a breeze!
We haven't tested our Dockerfile as we unfortunately have no way to do so, so if you encounter any problems, be sure to report them on the GitHub!
Prerequesites
- Docker
Steps
-
Clone the GitHub repository into a location of your choice
- With Git installed: In a terminal, run:
git clone https://github.com/Beacondev-Team/Beacon.git- Without Git installed, go to the GitHub repo online, click the green 'Code' button at the top and click 'Download ZIP' in the dropdown that appears. Extract the downloaded ZIP to a folder of your choosing.
-
Fill in the
.envfile.There are some environment variables that need to be filled in for the bot to work properly. Create an empty file called
.envand open it in a text editor.Copy this template into the file:
DISCORD_TOKEN = ""DEV_GUILD = ""In the quotes after
DISCORD_TOKENwith your Discord Bot Token that you got in step 4 of the previous section.In the quotes after
DEV_GUILDwith the Server ID of the server you have invited the bot to. To get this:- Enable Developer mode in Discord:
- Go to settings
- Scroll to the bottom of the sidebar and click 'Developer'
- Enable Developer Mode in the menu that appears
- Right click your Discord server in the sidebar.
- Click 'Copy Server ID'.
- Enable Developer mode in Discord:
-
Run
docker compose upin a terminal. This will:- Auto install Python and all dependencies
- Run the bot
-
From there it should work!