Skip to content

Commit 0a995b1

Browse files
committed
add timezone
1 parent 2569314 commit 0a995b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/services/Motd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class Motd extends Service {
101101
super(container);
102102
this.messages = [];
103103
this.initServices();
104-
scheduleJob("0 12 * * *", this.executeMessageJob.bind(this));
104+
scheduleJob({ minute: 0, hour: 12, tz: "Etc/GMT-2" }, this.executeMessageJob.bind(this));
105105
}
106106
private async initServices() {
107107
const bot = await this.container.getService("DiscordBot");
@@ -176,7 +176,7 @@ export class Motd extends Service {
176176
if (res.data.status === 200) {
177177
return res.data.data;
178178
}
179-
} catch {}
179+
} catch { }
180180
}
181181

182182
async setNicknameFromSentence(motd: string): Promise<boolean | undefined> {

0 commit comments

Comments
 (0)