A Discord poll bot with buttons and live results

/poll create opens a short form for the question, the choices and, if you like, when it should close. The bot posts the poll with a button for each choice and a bar for each result that moves as votes come in. Each member has one vote, and can change it or take it back. It runs on the Free plan.

Add to my serverRuns on the Free planUpdated

What it does

  1. A member runs /poll create and fills in the form.
  2. The bot posts the poll with a button for each choice and a Close poll button.
  3. Each press counts one vote. Pressing another choice moves the vote, and pressing the same one again takes it back.
  4. When the time is up, or someone closes it, the buttons go and the bot announces the winner or a tie.

Commands

  • /poll create

    Opens a form for the question, 2 to 10 choices and an optional closing time, then posts the poll in the current channel.

  • /poll close

    Closes a poll by its number and announces the result. Only whoever started it, or someone with the Manage Messages permission, can.

Before you add it

  • The bot's permission to send messages and embed links in the channel.

How adding it works

Press Add to my server and Buildcord asks you to sign up or sign in. It then makes a new bot from this template, with every flow already drawn. Paste your Discord bot token, add the bot to your server with the invite link and deploy. Nothing is final: the template is an ordinary bot you can open and change.

What you can change

  • Let members pick several choices by keeping their earlier vote instead of moving it.
  • Let only one role vote by adding a role check to the vote flow.
  • Change how the results look in the flow that draws them.

Questions

Can a poll close on its own?

Yes. Give it a time such as 1d in the form and it closes then, up to 89 days ahead. The wait runs on the Free plan, so it needs no schedule.

Can I see who voted for what?

Votes are kept in a collection called votes, one row per voter, so you can read them on the Data page. The poll itself only shows the totals.

Step-by-step guide

More templates

Draw the first flow.

A command, a reply and a deploy is a working bot. It takes a few minutes.

Start buildingOpen dashboard