discord-bot/index.ts
2025-07-31 11:29:31 +01:00

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)
});