send reminder on boot

This commit is contained in:
Erik 2021-06-20 02:21:49 +03:00
parent dd109d0907
commit 2a6862742d
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -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