From ccc8e3d182ebd05173c6a243c590eb78cff54a66 Mon Sep 17 00:00:00 2001 From: Daniel Matthies Date: Mon, 17 May 2021 12:58:30 -0600 Subject: Add config deprecation notice --- src/Shulker.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 { -- cgit 1.4.1