igore DMs and split content by words

This commit is contained in:
Baipyrus 2024-04-05 14:17:29 +02:00
parent e2ef65203e
commit 1336ee7d0d

View File

@ -5,4 +5,9 @@ import { Op } from 'sequelize';
export const name = Events.MessageCreate;
/** @param {Message} message */
export async function execute(message) {
// Ignore direct messages
if (!message.inGuild()) return;
// Split message content into words
const words = message.content.split(/\s+/);
}