A simple app that will remove polls sent by users that do not have excluded roles (can be configured)
Important
The MESSAGE_CONTENT privileged gateway intent must be enabled in the developer portal.
The app must have the following permissions to function without any issues:
Manage Messages- Any channel the app needs to monitor for pollsView Channels- Any channel the app needs to monitor for pollsSend Messages- The logging channelEmbed Links- The logging channel
Create a .env file in the root directory with the following contents:
Lines 1 to 2 in 8af6087
You must create a configuration file under the configs directory for every guild the app is in. The file name must be in the following format: GUILD_ID.yml or GUILD_ID.yaml. The contents of the file should be as follows:
ID of the channel where the app will log the removed polls:
logging_channel: "CHANNEL_ID"IDs of the roles that will be able to bypass the app's restrictions:
excluded_roles: ["ROLE_ID"]See example.yml for more info.
You could either use docker or bun to start up the app. For bun:
Install dependencies:
bun installStart up the app:
bun start