From 1d5b3eb798d57330655a93cd84f67be162222033 Mon Sep 17 00:00:00 2001 From: hwangsihu <129564966+hwangsihu@users.noreply.github.com> Date: Sun, 29 Sep 2024 22:18:30 +0900 Subject: [PATCH] index.ts --- src/index.ts | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/index.ts b/src/index.ts index feb91c317..0debd514d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,7 @@ import * as fs from 'node:fs'; +import { shardStart } from './shard'; import Logger from './structures/Logger'; import { ThemeSelector } from './utils/ThemeSelector'; -import Lavamusic from './structures/Lavamusic'; -import { env } from './env'; const logger = new Logger(); @@ -27,21 +26,7 @@ try { setConsoleTitle('Lavamusic'); const logFile = fs.readFileSync('./src/utils/LavaLogo.txt', 'utf-8'); console.log(theme.purpleNeon(logFile)); - - const client = new Lavamusic({ - intents: [ - 'Guilds', - 'GuildMessages', - 'MessageContent', - 'GuildVoiceStates', - 'GuildMembers', - 'GuildMessageTyping', - ], - allowedMentions: { parse: ['users', 'roles'], repliedUser: false }, - }); - - client.start(env.TOKEN); - + shardStart(logger); } catch (err) { logger.error('[CLIENT] An error has occurred:', err); }