A Discord bot for asking people when to do the thing.
Use the /schedule
command to create a schedule. People can click which days of
the week they are available, and the bot will update the message to show everyone's
availability.
I wrote it for raiding in Final Fantasy XIV, so it makes some assumptions like weeks starting on Tuesday and eight people being a full group. It's not very flexible. Fork it and fix it if that doesn't work for you.
-
Clone this repo.
-
Make a Discord bot.
-
Create a
.env
file at the root of the repo. Put your bot's application ID and token in the file:APP_ID=... TOKEN=...
-
Run these commands to install dependencies and start the bot:
npm install npm run compile npm start
-
The bot will print its invite link. Use it to invite it to your server.
-
Type
!deploy
somewhere the bot can read it, or wait about an hour for the command to register.
The .env
file supports these variables.
Name | Description |
---|---|
TOKEN |
Your bot's token |
RAID_SIZE |
The number of people in your group. Defaults to 8. |
ALMOST_EMOJI |
An emoji to add to a button when you're one away from a full group, for that one person who never responds |