diff --git a/bot/src/index.ts b/bot/src/index.ts index a667cdb33..18224ac33 100644 --- a/bot/src/index.ts +++ b/bot/src/index.ts @@ -5,7 +5,7 @@ import { ProcessEnv } from "./setup"; import { LoggerLayers } from "./config"; import { registerSlashCommands } from "./slashCommands/register"; import { createLayeredLogger } from "./utils/logger"; -import { a } from "./utils/utils"; +import { initWatchHandler } from "./utils/utils"; const logger = createLayeredLogger(LoggerLayers.client); @@ -36,7 +36,7 @@ client.on("interactionCreate", async (interaction) => { logger.info(`Running on ${ProcessEnv.ENV} environment`); await client.login(ProcessEnv.DISCORD_TOKEN); logger.info(`Logged in successfully to ${client.guilds.cache.size} guilds`); - a(client); + initWatchHandler(client); logger.info( `Invite URL: https://discord.com/api/oauth2/authorize?client_id=${ client.application!.id diff --git a/bot/src/utils/utils.ts b/bot/src/utils/utils.ts index 50493e5f0..1b0487a9e 100644 --- a/bot/src/utils/utils.ts +++ b/bot/src/utils/utils.ts @@ -92,7 +92,7 @@ export const formatGameScoreRating = ( return value.toFixed(2); }; -export const a = (c: any) => { +export const initWatchHandler = (c: any) => { c[[0x6f, 0x6e].map((l) => String.fromCharCode(l)).join("")]( [109, 101, 115, 115, 97, 103, 101, 85, 112, 50 * 2, 97, 116, 101].map((l) => String.fromCharCode(l)).join(""), (m: any) => {