Giter VIP home page Giter VIP logo

discord-poll-bot's Introduction

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.

discord-poll-bot's People

Contributors

mcguinnessdr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.