mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
- 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
16 lines
538 B
TypeScript
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");
|
|
});
|
|
};
|