12 lines
No EOL
343 B
TypeScript
12 lines
No EOL
343 B
TypeScript
import { Client, Events, GatewayIntentBits } from 'discord.js';
|
|
|
|
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.TOKEN).catch((err) => {
|
|
console.error('Failed to login:', err)
|
|
process.exit(1)
|
|
}); |