Skip to content

mcguinnessdr/discord-poll-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Poll Bot

Discord Poll Bot is designed to implement Instant Runoff Voting in an easy to use Discord bot.

Usage

To create a poll use either the /create-vote or /poll-modal commands. Modals are limited to 4 choices.

image image

To vote on a poll simply press the vote button on a poll and you will be presented with a series of messages where you can pick your top choices in order.

image

Self Hosting

This bot requires the Bun runtime.

  1. Set up a Discord Bot Application.
  2. Clone the repository.
  3. Run bun install in the root of the cloned repository.
  4. Create a file called config.json in the root directory and fill it out with the information from the bot you created in step 1. choiceCount is the max amount of choices a user can create for a poll (Modals are limited to 4 choices).

config.json:

{
    "token": string,
    "clientId": string,
    "choiceCount": number
}
  1. Run bun deploy-commands.
  2. Run bun start to start the bot.
  3. Add your bot's clientId to this url and go to it to invite the bot to your server: https://discord.com/api/oauth2/authorize?client_id=your client id here&permissions=274877908992&scope=bot.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published