summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorDaniel Matthies <mageluingil@gmail.com>2021-05-17 12:58:30 -0600
committerDaniel Matthies <mageluingil@gmail.com>2021-05-17 12:58:30 -0600
commitccc8e3d182ebd05173c6a243c590eb78cff54a66 (patch)
tree3e0df4b0eacdd8d259fcc4b9c260dfeda14cd123
parentFixing death message false positives (diff)
downloadshulker-ccc8e3d182ebd05173c6a243c590eb78cff54a66.tar.gz
shulker-ccc8e3d182ebd05173c6a243c590eb78cff54a66.zip
Add config deprecation notice
-rw-r--r--src/Shulker.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Shulker.ts b/src/Shulker.ts
index 4c79c78..d9373ee 100644
--- a/src/Shulker.ts
+++ b/src/Shulker.ts
@@ -8,6 +8,8 @@ class Shulker {
   discordClient: DiscordClient
   handler: Handler
 
+  readonly deprecatedConfigs: string[] = ['DEATH_KEY_WORDS'];
+
   constructor() {
   }
 
@@ -20,6 +22,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 {
29b68ec650cb2d63741e49980a27e0f009c9042b&follow=1'>Elaborate hi man pageJune McEnroe 2019-02-08Use set for parent in hiJune McEnroe 2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe 2019-02-08Match only the basename in hiJune McEnroe 2019-02-07Add mdoc syntax to hiJune McEnroe 2019-02-07Support multi-line C macros in hiJune McEnroe 2019-02-07Detect .mk files as makeJune McEnroe 2019-02-07Add make syntax to hiJune McEnroe 2019-02-07Add IRC output to hiJune McEnroe 2019-02-07Improve C syntax accuracy and add Format classJune McEnroe 2019-02-07Factor out hi checkJune McEnroe Fix subexpression bounds check and compile pattends. 2019-02-07Add Escape class to hiJune McEnroe 2019-02-07Add Todo class and parent syntax constraintJune McEnroe