Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrlolDev committed Dec 15, 2023
1 parent 8abcd1d commit 19cdaea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bot/commands/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 {
Expand Down

0 comments on commit 19cdaea

Please sign in to comment.