aboutsummaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorZagrthos <[email protected]>2022-03-25 00:19:48 +0100
committerGitHub <[email protected]>2022-03-24 18:19:48 -0500
commit2f9382f5171717fa512c03b3a3c08bd15ae85dd7 (patch)
treed377ed5d0fbb68e682b22b064a4eac705e228475 /src/services
parentcf4905337005768644178d46c744cfdc90bef7ff (diff)
downloadmuse-2f9382f5171717fa512c03b3a3c08bd15ae85dd7.tar.xz
muse-2f9382f5171717fa512c03b3a3c08bd15ae85dd7.zip
Add customizable Bot status (#599)
Co-authored-by: Max Isom <[email protected]> Co-authored-by: Max Isom <[email protected]>
Diffstat (limited to 'src/services')
-rw-r--r--src/services/config.ts8
1 files changed, 8 insertions, 0 deletions
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)) {