Files
blitzkit/src/index.ts
T

18 lines
616 B
TypeScript
Raw Normal View History

2023-04-28 13:42:42 +00:00
import { Client, GatewayIntentBits } from 'discord.js';
2023-04-26 23:42:15 +00:00
import { registerErrorHandlers } from './behaviors/error.js';
2023-04-22 01:59:41 +00:00
import guildMemberAdd from './behaviors/guildMemberAdd.js';
2023-04-28 13:42:42 +00:00
import interactionCreate from './behaviors/interactionCreate.js';
2023-04-20 13:37:10 +00:00
import ready from './behaviors/ready.js';
2023-04-28 13:42:42 +00:00
import { args } from './utilities/args.js';
2023-04-20 14:09:22 +00:00
2023-04-28 13:42:42 +00:00
export const client = new Client({
2023-04-18 22:53:48 +00:00
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers],
});
2023-04-28 13:42:42 +00:00
registerErrorHandlers();
2023-04-28 13:42:42 +00:00
client
2023-04-26 23:42:15 +00:00
.on('ready', ready)
.on('guildMemberAdd', guildMemberAdd)
2023-04-28 13:42:42 +00:00
.on('interactionCreate', interactionCreate)
.login(args['discord-token']);