mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
21 lines
542 B
TypeScript
21 lines
542 B
TypeScript
import { Events } from 'discord.js';
|
|
import { randomUUID as uuidv4 } from 'node:crypto';
|
|
import { Logger } from 'pino';
|
|
import loggerModule from '../../services/logger';
|
|
|
|
module.exports = {
|
|
name: Events.Debug,
|
|
isDebug: true,
|
|
once: false,
|
|
execute: async (message: string) => {
|
|
const executionId: string = uuidv4();
|
|
const logger: Logger = loggerModule.child({
|
|
module: 'event',
|
|
name: 'clientDebug',
|
|
executionId: executionId
|
|
});
|
|
|
|
logger.debug(message);
|
|
}
|
|
};
|