aboutsummaryrefslogtreecommitdiff
path: root/bot/src/bot.js
blob: ff03b06c90c651a7587c3a8f7ddfa287d63a0b7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { Client, GatewayIntentBits } from 'discord.js';
import 'dotenv/config';
import { init } from './init.js';
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages] });

init(client);

client.login(process.env.token).catch(function() {
    console.log('[X] Login failed. The token that you have put in is invalid.');
    process.exit(1);
});