Skip to content

Commit

Permalink
index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu authored Sep 29, 2024
1 parent 1b5e084 commit 1d5b3eb
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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();

Expand All @@ -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);
}
Expand Down

0 comments on commit 1d5b3eb

Please sign in to comment.