generated from Baipyrus/DiscordJS-Template
igore DMs and split content by words
This commit is contained in:
parent
e2ef65203e
commit
1336ee7d0d
@ -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+/);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user