basic bot

This commit is contained in:
grngxd 2025-07-31 11:29:31 +01:00
parent 4270071da2
commit 77101f1cc2
7 changed files with 79 additions and 15 deletions

View file

@ -1 +1,12 @@
console.log("Hello via Bun!");
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)
});