blob: 91c26c8affe5d22005ab5a50bf520b7b5cd52c9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildBans] });
init(client);
client.login(process.env.token).then(() => {
console.log('[>] Successfully authenticated.');
}).catch(() => {
console.log('[X] Login failed. The token that you have put in is invalid.');
process.exit(1);
});
|