Allow setting status to 'none' to disable setting status automatically

cshd
Dragory 2021-01-07 20:18:19 +02:00
parent dc3a1a05d3
commit 4b1c092a7b
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
2 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,7 @@ Prefix to use snippets anonymously
#### status #### status
**Default:** `Message me for help` **Default:** `Message me for help`
The bot's status text. Set to an empty value - `status = ""` - to disable. The bot's status text. Set to `none` to disable.
#### statusType #### statusType
**Default:** `playing` **Default:** `playing`

View File

@ -99,7 +99,7 @@ function initStatus() {
bot.editStatus(null, {name: config.status, type}); bot.editStatus(null, {name: config.status, type});
} }
if (config.status == null || config.status === "") { if (config.status == null || config.status === "" || config.status === "none" || config.status === "off") {
return; return;
} }