Personal reminders for Advanced Discord Bot.
/remind set time:10m message:"check the oven" — bot DMs you when it's due (falls back to the channel you set it in if DMs are closed).
/remind set time:<10m|2h|1d|30s> message:<text>— create a reminder/remind list— list your pending reminders in this server/remind cancel id:<id>— cancel one (id comes from/remind list)
- Reminders are stored in Mongo via
ctx.defineModel("reminder", schema)→ collectionplugin_adb-plugin-reminders_reminder. - A
node-cronjob (* * * * *, i.e. every minute) checks for due, undelivered reminders and sends them. - Note: this plugin bundles its own
node-crondependency rather than usingctx.scheduler. The real ADBctx.scheduleris the bot's internalTaskSchedulerand does not expose a generic.schedule(name, cron, fn)method — despite whatCREATE-PLUGIN.mdin the core repo implies. Bring your own cron for plugin-owned periodic jobs.
npm install
npm testRuns test/local-harness.js against test/mock-ctx.js, a fake in-memory ctx — exercises /remind set|list and the duration parser directly.
- Clone/have a working copy of Advanced Discord Bot.
- Either:
- Copy/symlink this folder into that bot's
plugins/directory:ln -s $(pwd) /path/to/Advanced-Discord-Bot/plugins/adb-plugin-reminders - Or npm link it so it's discovered the same way a real npm-installed plugin would be (via
node_modules/adb-plugin-*scanning):npm link # from this folder cd /path/to/Advanced-Discord-Bot npm link adb-plugin-reminders
- Copy/symlink this folder into that bot's
- Start the bot. Check logs for
Reminders plugin loaded. - Run
npm run deploy(in the bot repo) to register the new/remindslash command with Discord, since new commands need a deploy step even though plugin logic hot-reloads. - Try
/remind set time:30s message:"test"in Discord and confirm delivery.
npm install adb-plugin-reminders...into their bot's root node_modules/, and ADB's PluginManager will auto-discover it (any node_modules/adb-plugin-* folder with a plugin.json + entry file).
See REGISTRY-SETUP.md in the main ADB repo. Short version: fork the registry repo, add an entry to plugins.json with npmPackage: "adb-plugin-reminders", open a PR.
MIT