Skip to content

Commit

Permalink
Only do idle presence once, to not override other instances
Browse files Browse the repository at this point in the history
  • Loading branch information
bl3rune committed Sep 8, 2022
1 parent b5e49b8 commit 9accfcc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/services/discord-publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 9accfcc

Please sign in to comment.