basic bot
This commit is contained in:
parent
4270071da2
commit
77101f1cc2
7 changed files with 79 additions and 15 deletions
13
index.ts
13
index.ts
|
@ -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)
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue