added discord container for renaming and role-management

This commit is contained in:
PxlLoewe
2025-06-05 01:03:13 -07:00
parent 3c620b9b67
commit 6c9942a984
26 changed files with 824 additions and 28 deletions

View File

@@ -0,0 +1,19 @@
import { Client, GatewayIntentBits } from "discord.js";
const client = new Client({
intents: [GatewayIntentBits.Guilds],
});
const token = process.env.DISCORD_BOT_TOKEN;
if (!token) {
throw new Error("DISCORD_BOT_TOKEN environment variable is not set.");
}
client.login(token);
client.on("ready", () => {
console.log(`Logged in as ${client.user?.tag}`);
});
export default client;