13 lines
327 B
JavaScript
13 lines
327 B
JavaScript
const { Client, Events, GatewayIntentBits } = require('discord.js');
|
|
const dotenv = require('dotenv');
|
|
|
|
dotenv.config();
|
|
|
|
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
|
|
|
|
client.once(Events.ClientReady, c => {
|
|
console.log(`Ready! Logged in as ${c.user.tag}`);
|
|
});
|
|
|
|
client.login(process.env.DISCORD_TOKEN);
|