convert message to lowercase first

This commit is contained in:
Baipyrus 2024-04-10 07:56:04 +02:00
parent c13d0cb193
commit 194a3d89ab

View File

@ -9,7 +9,7 @@ export async function execute(message) {
if (!message.inGuild() || message.author.id === process.env.CLIENT) return; if (!message.inGuild() || message.author.id === process.env.CLIENT) return;
// Split message content into words // Split message content into words
const words = message.content.split(/\s+/); const words = message.content.toLowerCase().split(/\s+/);
// Get guild keywords // Get guild keywords
/** @type {import('../../models/keywords.js').Keyword[]} */ /** @type {import('../../models/keywords.js').Keyword[]} */