Created to remind a friend to eat - now expanded to be a general reminder tool!
This is not a Discord bot, it uses webhooks.
node.js: 22.12.0 (used for development, although any version discord.js supports should function.)
discord.js: ^14.17.2
Copy config.default.json to config.json before usage.
Create a webhook in the server of choice. Grab the URL and get the webhook ID:
/api/webhooks/<this is the webhookId>/<this is the webhookToken>
You should run this using pm2 (or screen: whatever. as long as it stays in the background!), as it will sit in the background and trigger when necessary.
logLevel:
0: only user triggered commands from the REPL will display.
1: not used.
2: necessary outputs. (default)
3: helpful output for determining functionality.
4: super ultra mega hyper debug (this just triggers the formatTime tests.)
testId: test webhook id.
testToken: test webhook token.
isTesting: required for logLevel 4 to work, but also replaces all webhookId and webhookTokens in triggers to be testId and testToken.
checkInterval: interval in milliseconds (default: 24000) for how often triggers should be checked.
triggers: array of JSON objects:
time: time in 12 hour time for when the reminder should trigger. formatting of the time matters, see the examples: (12:00am, 2:30pm, 9:00am), or read the default config.
message: message to send (used for testId, testToken):
Formatting options:
Discord's standard markdown is supported.
You can include {{time}} if you want to display the current server time at the time of sending.
webhooks: array of JSON objects:
id: webhook ID
token: webhook token
message: message to send to this specific webhook