mirror of
https://github.com/chenasraf/venom.git
synced 2026-05-17 17:28:08 +00:00
fix: setting command bug
This commit is contained in:
@@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user