blob: bba8eaf0e16088d595f774d3d72beded16e57892 (
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] });
void 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);
});
|