Réécriture complète 4.0
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s

This commit is contained in:
2025-06-09 16:29:12 +02:00
parent f2c6388da6
commit ddd617317c
133 changed files with 8092 additions and 4332 deletions

View File

@@ -1,14 +1,12 @@
import { Events, Guild } from 'discord.js'
import dbGuildInit from '../../utils/dbGuildInit'
export default {
name: Events.GuildCreate,
async execute(guild: Guild) {
console.log(`Joined "${guild.name}" with ${guild.memberCount} members`)
let guildProfile = await dbGuildInit(guild)
if (!guildProfile) return console.log(`An error occured while initializing database data for "${guild.name}" !`)
console.log(`Database data for new guild "${guildProfile.guildName}" successfully initialized !`)
}
}
import { Events, Guild } from "discord.js"
import dbGuildInit from "@/utils/dbGuildInit"
import { logConsole } from "@/utils/console"
export const name = Events.GuildCreate
export async function execute(guild: Guild) {
logConsole('discordjs', 'guild_create', { name: guild.name, count: guild.memberCount.toString() })
const guildProfile = await dbGuildInit(guild)
logConsole('mongoose', 'guild_create', { name: guildProfile.guildName })
}