From d03dec97339e9ecee5450b82f24cd76418766f5c Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Wed, 7 Aug 2024 16:49:47 +0300 Subject: [PATCH] fix: setting command bug --- src/commands/settings.command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/settings.command.ts b/src/commands/settings.command.ts index 6b59bcd..fe11ccc 100644 --- a/src/commands/settings.command.ts +++ b/src/commands/settings.command.ts @@ -48,12 +48,12 @@ export default command({ if (value == null) { const value = await getSetting(key) - return message.reply(`\`${key}\` is set to \`${value}\``) + return message.reply(`\`${key}\` is set to \`${JSON.stringify(value)}\``) } if (!force) { const exists = await getSetting(key) - if (!exists) { + if (exists === undefined) { return message.reply(`Key \`${key}\` does not exist. Use \`-f\` to force setting this key`) } }