From 4b1c092a7b6ae32931295d267e64db5b6992e3fb Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 7 Jan 2021 20:18:19 +0200 Subject: [PATCH] Allow setting status to 'none' to disable setting status automatically --- docs/configuration.md | 2 +- src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index e3e7756..69ce082 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -367,7 +367,7 @@ Prefix to use snippets anonymously #### status **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 **Default:** `playing` diff --git a/src/main.js b/src/main.js index b7fcbfd..d11c90d 100644 --- a/src/main.js +++ b/src/main.js @@ -99,7 +99,7 @@ function initStatus() { 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; }