Skip to content

SimonDold/discord-votebot

Repository files navigation

Setup:

  1. 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'.

  1. Create the text channels "meetings", "paper-suggesting" and "paper-voting". In "paper-voting" remove the permission to send messages for everyone except the bot.

  2. 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.

  3. 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'>
    
  4. Navigate into the folder that contains the 'docker-compose.yml' file.

  5. Start the bot with:

      sudo docker-compose up --build -d
    
  6. Interact with the bot by sending it the message "!help" or "!admin_help" in the discord channel "paper-suggesting" or as a private message.

  7. Stop the bot with:

      sudo docker-compose down
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published