Manual Setup
Whilst manual setup is supported, it is much easier to use Docker, as it installs all the dependencies for you. We only recommend this if you know what you're doing.
Prerequesites
- Python
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. (1)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:
-
Create a Python virtual environment and activate it.
-
Install the required pip packages:
pip install -r requirements.txt -
You can now run
main.pyand it should work!