diff --git a/src/botListPoster.ts b/src/botListPoster.ts index 61e0b82..c4dcfc3 100644 --- a/src/botListPoster.ts +++ b/src/botListPoster.ts @@ -20,7 +20,7 @@ export const updateBotListStatistics = (serverCount: number): void => { log(LT.INFO, `Posted server count to ${botList.name}. Results: ${JSON.stringify(response)}`); } } catch (err) { - log(LT.ERROR, `Failed to update statistics for ${botList.name} | Error: ${err.name} - ${err.message}`) + log(LT.ERROR, `Failed to update statistics for ${botList.name} | Error: ${err.name} - ${err.message}`); } }); }; diff --git a/src/buttons/event-creation/step2-finalize.ts b/src/buttons/event-creation/step2-finalize.ts index 393715d..3d4cc54 100644 --- a/src/buttons/event-creation/step2-finalize.ts +++ b/src/buttons/event-creation/step2-finalize.ts @@ -50,7 +50,9 @@ const execute = async (bot: Bot, interaction: Interaction) => { // Log custom event to see if we should add it as a preset if (customAct) { - dbClient.execute(queries.insertCustomActivity, [interaction.guildId, category, activity.name, activity.maxMembers]).catch((e) => utils.commonLoggers.dbError('step2-finalize.ts@custom', 'insert into', e)); + dbClient.execute(queries.insertCustomActivity, [interaction.guildId, category, activity.name, activity.maxMembers]).catch((e) => + utils.commonLoggers.dbError('step2-finalize.ts@custom', 'insert into', e) + ); } const rawEventTime = tempDataMap.get(eventTimeId) || ''; diff --git a/src/commands/audit.ts b/src/commands/audit.ts index a9070c5..49fa948 100644 --- a/src/commands/audit.ts +++ b/src/commands/audit.ts @@ -1,5 +1,5 @@ import config from '../../config.ts'; -import { ApplicationCommandTypes, ApplicationCommandOptionTypes, Bot, Interaction, InteractionResponseTypes, DiscordEmbedField } from '../../deps.ts'; +import { ApplicationCommandOptionTypes, ApplicationCommandTypes, Bot, DiscordEmbedField, Interaction, InteractionResponseTypes } from '../../deps.ts'; import { infoColor2, infoEmbed, isLFGChannel, somethingWentWrong } from '../commandUtils.ts'; import { dbClient, queries } from '../db.ts'; import { CommandDetails } from '../types/commandTypes.ts'; @@ -78,7 +78,7 @@ const execute = async (bot: Bot, interaction: Interaction) => { break; } } else { - somethingWentWrong(bot, interaction, 'auditMissingData') + somethingWentWrong(bot, interaction, 'auditMissingData'); } }; diff --git a/src/events/ready.ts b/src/events/ready.ts index b328088..2400ceb 100644 --- a/src/events/ready.ts +++ b/src/events/ready.ts @@ -63,7 +63,7 @@ export const ready = (rawBot: Bot) => { }, 30000); // Interval to handle updating botList statistics - if (botListPosterIntervalId) clearInterval(botListPosterIntervalId) + if (botListPosterIntervalId) clearInterval(botListPosterIntervalId); LOCALMODE ? log(LT.INFO, 'updateListStatistics not running') : botListPosterIntervalId = setInterval(() => { log(LT.LOG, 'Updating all bot lists statistics'); updateBotListStatistics(bot.guilds.size + bot.dispatchedGuildIds.size);