From 2a6862742dd75ad8843cf507a37873e0b2ba480a Mon Sep 17 00:00:00 2001 From: Navy Date: Sun, 20 Jun 2021 02:21:49 +0300 Subject: [PATCH] send reminder on boot --- structure/Modmail.js | 1 + 1 file changed, 1 insertion(+) diff --git a/structure/Modmail.js b/structure/Modmail.js index 8e26fd0..f65e4b8 100644 --- a/structure/Modmail.js +++ b/structure/Modmail.js @@ -54,6 +54,7 @@ class Modmail { if (this._reminderChannel) { this.reminderChannel = this.client.channels.resolve(this._reminderChannel); this.reminder = setInterval(this.sendReminder.bind(this), this.reminderInterval * 60 * 1000); + this.sendReminder(); } // Sweep graveyard every 30 min and move stale channels to graveyard