generated from Baipyrus/DiscordJS-Template
convert message to lowercase first
This commit is contained in:
parent
c13d0cb193
commit
194a3d89ab
@ -9,7 +9,7 @@ export async function execute(message) {
|
||||
if (!message.inGuild() || message.author.id === process.env.CLIENT) return;
|
||||
|
||||
// Split message content into words
|
||||
const words = message.content.split(/\s+/);
|
||||
const words = message.content.toLowerCase().split(/\s+/);
|
||||
|
||||
// Get guild keywords
|
||||
/** @type {import('../../models/keywords.js').Keyword[]} */
|
||||
|
Loading…
Reference in New Issue
Block a user