From d95e4d8efe8d0dd8c1c42337337cac072431cfed Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 28 Oct 2019 00:00:07 -0400 Subject: [PATCH] should set locked to false --- src/commands/unlock.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/unlock.ts b/src/commands/unlock.ts index 690e491..8e88998 100644 --- a/src/commands/unlock.ts +++ b/src/commands/unlock.ts @@ -21,6 +21,7 @@ export default class Unlock extends Command { const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Unlocking account...***`); if (account.username === 'matthew' || account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`); await this.client.util.exec(`unlock ${account.username}`); + await account.updateOne({ locked: false }); const moderation = new this.client.db.Moderation({ username: account.username,