diff --git a/README.md b/README.md index 8ab6988..24afb51 100644 --- a/README.md +++ b/README.md @@ -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` | diff --git a/package.json b/package.json index 0afe816..fd7550a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gamedig-discord-bot", - "version": "1.1.0", + "version": "1.1.1", "main": "dist/index.js", "scripts": { "build": "gulp", diff --git a/src/services/discord-publisher.ts b/src/services/discord-publisher.ts index 593df84..4e981a1 100644 --- a/src/services/discord-publisher.ts +++ b/src/services/discord-publisher.ts @@ -35,7 +35,7 @@ private serverUp: Map; status: 'idle', activities: [{ type: ActivityType.Watching, - name: 'the server do nothing' + name: process.env.IDLE_STATUS || 'No servers running' }], }); }