Files
flint/apps/bot/src/legacy/events/guildCreate.ts
T
Puechberty Arthur 3063796eb0 feat: introduce web dashboard with multi-bot management
- add Discord OAuth2 authentication
- allow users to register their bots via token
- implement dynamic bot start/stop system
- store bots in database (multi-tenant)
- replace single-bot env setup with scalable architecture
2026-04-18 01:39:12 +02:00

16 lines
538 B
TypeScript

import { Events, type Client } from "discord.js";
import { createScopedLogger } from "../core/logging/logger.js";
const log = createScopedLogger("event:guildCreate");
/**
* Enregistre le listener `guildCreate` (bot ajouté à un serveur).
*
* Action minimale: log pour monitoring ; peut être étendu (initialisation de configs, etc.).
*/
export const registerGuildCreate = (client: Client): void => {
client.on(Events.GuildCreate, (guild) => {
log.info({ guildId: guild.id, guildName: guild.name }, "joined guild");
});
};