summary refs log tree commit diff homepage
path: root/src/Shulker.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Shulker.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Shulker.ts b/src/Shulker.ts
index 220cd03..517d1e2 100644
--- a/src/Shulker.ts
+++ b/src/Shulker.ts
@@ -10,6 +10,11 @@ class Shulker {
   discordClient: DiscordClient
   handler: Handler
 
+  readonly deprecatedConfigs: string[] = ['DEATH_KEY_WORDS'];
+
+  constructor() {
+  }
+
   loadConfig () {
     const configFile = process.argv.length > 2 ? process.argv[2] : './config.json'
     if (!fs.existsSync(configFile)) {
@@ -25,6 +30,12 @@ class Shulker {
       return false
     }
 
+    for (let option of this.deprecatedConfigs) {
+      if (this.config.hasOwnProperty(option)) {
+        console.log('[WARN] Using deprecated config option ' + option + '. Check README.md for current options.')
+      }
+    }
+
     if (this.config.USE_WEBHOOKS) {
       console.log('[INFO] Using Discord WebHooks to send messages')
     } else {