This commit is contained in:
mo
2026-03-09 07:48:08 +01:00
parent 5271665963
commit dfb8b2781d
6 changed files with 191 additions and 127 deletions

View File

@@ -6,7 +6,12 @@ import client from "lib/client";
import { logger } from "lib/common-logger";
import { handleCommand } from "./handle-command";
// https://fluxerjs.blstmo.com/v/latest/docs/classes/DMChannel
client.on(Events.MessageCreate, async (message: Message) => {
const messageAuthor = message.author;
const messageReceiver = message.type;
logger.info("got msg");
if (message.content?.startsWith(config.commandPrefix) && message.channel) {
await messagesService.logMessage(message);
logger.info(