From 19cdaea9fe9810d59b6fa244958b18d6d33c9e67 Mon Sep 17 00:00:00 2001 From: MrlolDev Date: Fri, 15 Dec 2023 22:43:38 +0100 Subject: [PATCH] fix --- src/bot/commands/chat.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot/commands/chat.ts b/src/bot/commands/chat.ts index f84e442..a2ab943 100644 --- a/src/bot/commands/chat.ts +++ b/src/bot/commands/chat.ts @@ -156,8 +156,9 @@ async function buildInfo( } let loadingIndicatorId: string | boolean | number | object = await getSettingsValue(user, "general:loadingIndicator"); if (!loadingIndicatorId) { - loadingIndicatorId = (await getDefaultValues("general:loadingIndicator")) as string; + loadingIndicatorId = (await getDefaultValues("general:loadingIndicator")) as number; } + console.log(loadingIndicatorId); const loadingIndicator = LOADING_INDICATORS[loadingIndicatorId as number]; let lastUpdate = Date.now(); @@ -172,9 +173,8 @@ async function buildInfo( // if last update was more than 1 second ago lastUpdate = Date.now(); await edit({ - content: `${data.result}<${loadingIndicator.emoji.animated ? "a" : ""}:${loadingIndicator.emoji.name}:${ - loadingIndicator.emoji.id - }>`, + content: `${data.result}<${loadingIndicator.emoji.animated ? "a" : ""}:${loadingIndicator.emoji.name}:${loadingIndicator.emoji.id + }>`, }); } } else {