bot.settings: aaaaaaaaaaaaaaaaaaaaaaa

This commit is contained in:
Cynthia Foxwell 2022-05-07 16:54:23 -06:00
parent e0d67ff501
commit 73576a911a

View file

@ -185,7 +185,7 @@ settings.callback = async function (msg, line, cmd, key, value) {
if (!guildSettings.flags[key]) return "Unknown key."; if (!guildSettings.flags[key]) return "Unknown key.";
const enabled = guildSettings.hasFlag(msg.guildID, key); const enabled = guildSettings.hasFlag(msg.guildID, key);
if (enabled) return "Already enabled."; if (enabled === true) return "Already enabled.";
await guildSettings.enableFlag(msg.guildID, key); await guildSettings.enableFlag(msg.guildID, key);
return {reaction: "\uD83D\uDC4C"}; return {reaction: "\uD83D\uDC4C"};
@ -200,7 +200,7 @@ settings.callback = async function (msg, line, cmd, key, value) {
if (!guildSettings.flags[key]) return "Unknown key."; if (!guildSettings.flags[key]) return "Unknown key.";
const enabled = guildSettings.hasFlag(msg.guildID, key); const enabled = guildSettings.hasFlag(msg.guildID, key);
if (!enabled) return "Already disabled."; if (enabled === false) return "Already disabled.";
await guildSettings.disableFlag(msg.guildID, key); await guildSettings.disableFlag(msg.guildID, key);
return {reaction: "\uD83D\uDC4C"}; return {reaction: "\uD83D\uDC4C"};