Skip to content

Commit

Permalink
Updated to handle custom idle messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bl3rune committed Sep 11, 2022
1 parent 04bbae0 commit ed30ad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ You need to set the following configuration options.
| FALSE | `DISCORD_CHANNEL` | The channel id of your discord chat to send server availability to | `string` |
| FALSE | `UP.####` | Message to be sent on server available for game type #### (DISCORD_CHANNEL must be provided) | `string` |
| FALSE | `DOWN.####` | Message to be sent on server unavailable for game type #### (DISCORD_CHANNEL must be provided) | `string` |
| FALSE | `IDLE_STATUS` | Override idle status messaging for the bot when no servers are available | `string` |
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gamedig-discord-bot",
"version": "1.1.0",
"version": "1.1.1",
"main": "dist/index.js",
"scripts": {
"build": "gulp",
Expand Down
2 changes: 1 addition & 1 deletion src/services/discord-publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private serverUp: Map<Type,boolean>;
status: 'idle',
activities: [{
type: ActivityType.Watching,
name: 'the server do nothing'
name: process.env.IDLE_STATUS || 'No servers running'
}],
});
}
Expand Down

0 comments on commit ed30ad7

Please sign in to comment.