trading-peter / Inquiry

An advanced poll bot with tonnes of customisation, and no voting blocks. Made by a man with an unhealthy obsession with polls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inquiry is a bot that makes polls. Nothing more nothing less. Featuring extensive customisation, all you need to do is ask the question.

Invite Inquiry

Powered by NAFF

image

So how do you use Inquiry?

Simply type /poll and name your poll. From here you can customise the poll to your needs.

Once customised, hit submit, and a modal will appear letting you add your options.

All polls have the following optional settings

  • Colour - What colour should the embed be?
  • Description - Add a description to your poll
  • Duration - How long can people vote in this poll?
  • Max_Votes - The maximum number of votes per user
  • Hide_Results - Hide the results of the poll until it has closed
  • voting_role - Require the member has a specific role to vote
  • Open_Poll - Allow people to add their own options to the poll
  • Thread - Create a thread for this poll
  • Inline - Should the options be displayed in line (side-by-side)
  • Image - Add an image to the poll
  • Close_Message - Send a message when the poll is closed

image

Need a poll fast?

Use premade poll commands. These commands create a poll with pre-set options for you.

Currently, there are:

  • poll_boolean - a poll with yes or no options
  • poll_opinion - a poll with agree, neutral, disagree options
  • poll_week - a poll with the days of the week
  • poll_blank - an open poll with no starting options
  • poll_elimination - A poll where options are eliminated when you vote for them

What about custom emoji?

Custom emoji couldnt be simpler; just put an emoji anywhere in the option text, and Inquiry will extract it for the option's emoji

image

image

Made a mistake?

You can edit polls too, up until you close them. Simply use the edit_poll commands

Want to close the poll?

To automatically close polls, use the duration setting, otherwise just react to the poll with đź”´

It's your data!

These are your polls, your voters, and your results. If you want to take your results from a poll to use for something else, its your right to. Use /export to export the data out of the polls in whatever format you need.

image

How do I self-host this?

While I won't go out of my way to make help you, I can appreciate wanting to host things yourself.

You'll need three things, redis, docker, and a token. The best part is docker can help with the first one.

For the token, create a file called .env. In it, put your token, like this

TOKEN=<token>

Fire up your redis server, and run the following command in this projects root dir

docker-compose up -d

Congrats, Inquiry is now running on your machine.

If you make something cool, please consider creating a PR here.

About

An advanced poll bot with tonnes of customisation, and no voting blocks. Made by a man with an unhealthy obsession with polls


Languages

Language:Python 99.6%Language:Dockerfile 0.4%