diff options
author | Daniel Matthies <mageluingil@gmail.com> | 2021-05-17 12:58:30 -0600 |
---|---|---|
committer | Daniel Matthies <mageluingil@gmail.com> | 2021-05-17 12:58:30 -0600 |
commit | ccc8e3d182ebd05173c6a243c590eb78cff54a66 (patch) | |
tree | 3e0df4b0eacdd8d259fcc4b9c260dfeda14cd123 | |
parent | Fixing death message false positives (diff) | |
download | shulker-ccc8e3d182ebd05173c6a243c590eb78cff54a66.tar.gz shulker-ccc8e3d182ebd05173c6a243c590eb78cff54a66.zip |
Add config deprecation notice
-rw-r--r-- | src/Shulker.ts | 8 |
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 { |