Skip to content

Commit aae3b81

Browse files
authored
fix: send a message containing the cron rule of the reminder (#113)
* fix: send a message containing the cron rule of the reminder
1 parent 4bcd642 commit aae3b81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/handlers/reminder.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export async function scheduleReminder(reminder: ReminderI, message: Message) {
5353
};
5454

5555
const cronExpression = reminder.cron;
56+
await replyMessage(
57+
"This is the cron that Sydney sent, take a look to see if it's correct:\n" +
58+
cronExpression
59+
);
5660
const job = scheduler.scheduleJob(cronExpression, () => console.log(""));
5761

5862
let reminderCount = 0;

0 commit comments

Comments
 (0)