diff --git a/src/services/discord-publisher.ts b/src/services/discord-publisher.ts index 34956d7..3f0d125 100644 --- a/src/services/discord-publisher.ts +++ b/src/services/discord-publisher.ts @@ -32,14 +32,15 @@ private serverAvailable = false; if (status === undefined) { if (this.serverAvailable) { this.announce(false); + + await this.client.user?.setPresence({ + status: 'idle', + activities: [{ + type: ActivityType.Watching, + name: 'the server do nothing' + }], + }); } - await this.client.user?.setPresence({ - status: 'idle', - activities: [{ - type: ActivityType.Watching, - name: 'the server do nothing' - }], - }); this.serverAvailable = false; } else { let name = '';