diff options
| author | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-06-21 18:27:21 +0400 |
|---|---|---|
| committer | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-06-21 18:27:21 +0400 |
| commit | 161cc01bcb3863d386cc759529a08aa432c75bd7 (patch) | |
| tree | 97fd4654783642698b8c1e6406c74397749da4de | |
| parent | a3b83a8f5ce574a41b46dcc892b207a64dfb307c (diff) | |
better sanitizing
| -rw-r--r-- | discordjs/src/index.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs index 1d5c81f..a85ba4f 100644 --- a/discordjs/src/index.mjs +++ b/discordjs/src/index.mjs @@ -51,7 +51,7 @@ const messageAction = async (message) => { if (message.author.bot) return; const cleanText = sanitizeWord(message.cleanContent); if (countChars(cleanText) > 0) { - let response = await completeWord(); + let response = await completeWord(cleanText); // Ignore if there is no completion const shouldReply = (Math.random() > 0.98 || specialChannels.includes(message.channelId) || message.guild == null); |
