Warning
As Discord have rolled out the permission for restricting the usage of polls PollPolice no longer serves a wide-spread purpose, and is now offline.
This source code will remain publicly available in case somebody wishes to self-host it, or wishes to see how I implemented its functionality. Thanks for supporting the bot while it was live, and I am happy to have provided the service Discord failed to.
PollPolice prevents certain server members from sending the newly released polls feature on Discord.
- Customizable role(s) to be exempt from the poll restriction
- Customizable channel(s) to be exempt from the poll restriction
- Customizable message to notify the poll creator that their poll was deleted
- Supports internationalization; matching the 'preferred locale' of your community (Server Settings -> Community (Overview) -> Server Primary Language)
- Currently supports English, Spanish, French and German. Start an issue or join our Discord to request more languages!
- Invite the bot to your server
- Run
/settings
to configure PollPolice to suit your community's needs - Enjoy a (semi) poll-free server!
- Clone the repository
- Install the requirements with
bun install
- Create a
.env
file based on the.env.example
file - Push the database schema with
bun db:push
- Run the bot with
bun start:bot