feat(events/developper): adding developpeur / host event

This commit is contained in:
Raphael 2025-10-14 00:20:10 +02:00 committed by Raphaël
parent d8b7cdd678
commit 7f07f9817c
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { Events } from 'discord.js';
import chalk from 'chalk';
const isDebug = process.argv.includes('--debug');
export default {
name: Events.Debug,
once: false,
async execute(info: string) {
if (isDebug) {console.debug(chalk.blueBright('🔍 |', info));}
},
};

View file

@ -0,0 +1,10 @@
import { Events } from 'discord.js';
import chalk from 'chalk';
export default {
name: Events.Error,
once: false,
async execute(error: string) {
console.debug(chalk.yellow('❌ |', error));
},
};

View file

@ -0,0 +1,10 @@
import { Events } from 'discord.js';
import chalk from 'chalk';
export default {
name: Events.Warn,
once: false,
async execute(warn: string) {
console.debug(chalk.yellow('⚠️ |', warn));
},
};