mirror of
https://github.com/SrIzan10/ava.git
synced 2026-06-06 00:46:53 +00:00
21 lines
453 B
TypeScript
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);
|