From 04889a3318ee035c3bf1c50f47a0aee2d74b3f06 Mon Sep 17 00:00:00 2001 From: Pfych Date: Sun, 10 Oct 2021 13:24:03 +1100 Subject: [PATCH] Correct func name --- bot/src/index.ts | 4 ++-- bot/src/utils/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) => {