From 67d43bc0a1cfef0866d6e2a304abf7053b4e1bf8 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Tue, 2 Aug 2022 16:17:24 +0200 Subject: [PATCH] Remove spam logging --- src/commands/avatar.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/avatar.ts b/src/commands/avatar.ts index f3620d5..350fa9c 100644 --- a/src/commands/avatar.ts +++ b/src/commands/avatar.ts @@ -34,16 +34,18 @@ export default async function handle(command: Command) { } case "giveall": { for (const id in AvatarExcelTable) { - Avatar.create(uid, parseInt(id)).then(() => c.log(`All avatars added to ${uid}`)); + await Avatar.create(uid, parseInt(id)); } + c.log(`All avatars added to ${uid}`); break; } case "removeall": { for (const id in AvatarExcelTable) { if (!(id == '1001')) { - Avatar.remove(uid, parseInt(id)).then(() => c.log(`All avatars removed from ${uid}`)); + await Avatar.remove(uid, parseInt(id)); } } + c.log(`All avatars removed from ${uid}`); break; } }