Setup:
- Create a new discord application on https://discord.com/developers/applications with the permissions:
-
Send Messages
-
Send Messages in Threads
-
Manage Messages
-
Read Message History
-
Add Reactions
and invite the bot to your discord server. Under Settings/Bot you can Reset the Token to get the 'BOT_TOKEN'.
-
Create the text channels "meetings", "paper-suggesting" and "paper-voting". In "paper-voting" remove the permission to send messages for everyone except the bot.
-
Copy 'Dockerfile', 'requirements.txt' and 'docker-compose.yml' to your machine (No need to clone the repository. The container will do this for you.) Change the relative path 'context' in 'docker-compose.yml' if you put it into a different locations than the other two.
-
Create a file '.env' in the same folder where you put 'docker-compose.yml' to define the environment variables. It should be of the pattern:
BOT_TOKEN=<your personal bot token> ADMIN_ID=<discord user id of you> MEETING_CHANNEL_ID=<id of the textchannel called 'meetings'> PAPER_SUGGESTING_CHANNEL_ID=<id of the textchannel called 'paper-suggesting'> PAPER_VOTING_CHANNEL_ID=<id of the textchannel called 'paper-voting'>
-
Navigate into the folder that contains the 'docker-compose.yml' file.
-
Start the bot with:
sudo docker-compose up --build -d
-
Interact with the bot by sending it the message "!help" or "!admin_help" in the discord channel "paper-suggesting" or as a private message.
-
Stop the bot with:
sudo docker-compose down