Discord Poll Bot is designed to implement Instant Runoff Voting in an easy to use Discord bot.
To create a poll use either the /create-vote or /poll-modal commands. Modals are limited to 4 choices.
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.
This bot requires the Bun runtime.
- Set up a Discord Bot Application.
- Clone the repository.
- Run
bun installin the root of the cloned repository. - Create a file called
config.jsonin the root directory and fill it out with the information from the bot you created in step 1.choiceCountis 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
}- Run
bun deploy-commands. - Run
bun startto start the bot. - Add your bot's
clientIdto 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.