Files
ava/index.ts
2022-12-17 23:41:57 +01:00

21 lines
453 B
TypeScript

import { Client, GatewayIntentBits } from 'discord.js';
import { Sern, SernEmitter } from '@sern/handler';
import 'dotenv/config';
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildVoiceStates,
],
});
//View docs for all options
Sern.init({
client,
commands: 'dist/commands',
events: 'dist/events',
sernEmitter: new SernEmitter(),
});
client.login(process.env.TOKEN);