Allow setting status to 'none' to disable setting status automatically
parent
dc3a1a05d3
commit
4b1c092a7b
|
@ -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`
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue