When the DISBOARD bot says "Bump done", post a reminder in that channel two hours later saying it is time to /bump again, and cancel the pending reminder if a new bump happens first
Automatically schedules a reminder 2 hours after DISBOARD confirms a successful bump. When someone bumps again before the reminder fires, it cancels the old one and schedules a new 2-hour countdown. The reminder posts in the same channel where the bump happened.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
⏰ Time to /bump again!
⏰ Time to /bump again!
// DISBOARD bump reminder: when DISBOARD says "Bump done", schedule a
// reminder 2 hours later. A new bump cancels the pending reminder.
// Only a successful bump message wakes the module
mee6.on('bot_message', { contains: ['Bump done'] }, async (ctx) => {
// Only act on DISBOARD messages
if (ctx.author.username !== 'DISBOARD') return;
// Cancel any existing reminder for this channel (new bump replaces old schedule)
await mee6.schedule.cancel(`bump_${ctx.channelId}`);
// Schedule a new reminder for 2 hours (7200 seconds)
await mee6.schedule.once(`bump_${ctx.channelId}`, 7200, {
channelId: ctx.channelId,
});
mee6.log(`Scheduled bump reminder for channel ${ctx.channelId}`);
});
mee6.on('scheduled', async (ctx) => {
if (!ctx.scheduleKey.startsWith('bump_')) return;
const p = ctx.payload as { channelId: string };
await ctx.send(p.channelId, '⏰ Time to `/bump` again!');
});