Correct func name

This commit is contained in:
Pfych
2021-10-10 13:24:03 +11:00
parent dc5eed586b
commit 04889a3318
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -92,7 +92,7 @@ export const formatGameScoreRating = <I extends IDStrings = IDStrings>(
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) => {