From 2f9382f5171717fa512c03b3a3c08bd15ae85dd7 Mon Sep 17 00:00:00 2001 From: Zagrthos <36556009+Zagrthos@users.noreply.github.com> Date: Fri, 25 Mar 2022 00:19:48 +0100 Subject: Add customizable Bot status (#599) Co-authored-by: Max Isom Co-authored-by: Max Isom --- src/services/config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/services') diff --git a/src/services/config.ts b/src/services/config.ts index cd56915..1b4f4c9 100644 --- a/src/services/config.ts +++ b/src/services/config.ts @@ -17,6 +17,10 @@ const CONFIG_MAP = { DATA_DIR, CACHE_DIR: path.join(DATA_DIR, 'cache'), CACHE_LIMIT_IN_BYTES: xbytes.parseSize(process.env.CACHE_LIMIT ?? '2GB'), + BOT_STATUS: process.env.BOT_STATUS ?? 'online', + BOT_ACTIVITY_TYPE: process.env.BOT_ACTIVITY_TYPE ?? 'LISTENING', + BOT_ACTIVITY_URL: process.env.BOT_ACTIVITY_URL ?? '', + BOT_ACTIVITY: process.env.BOT_ACTIVITY ?? 'music', } as const; @injectable() @@ -29,6 +33,10 @@ export default class Config { readonly DATA_DIR!: string; readonly CACHE_DIR!: string; readonly CACHE_LIMIT_IN_BYTES!: number; + readonly BOT_STATUS!: string; + readonly BOT_ACTIVITY_TYPE!: string; + readonly BOT_ACTIVITY_URL!: string; + readonly BOT_ACTIVITY!: string; constructor() { for (const [key, value] of Object.entries(CONFIG_MAP)) { -- cgit v1.2.3