diff options
| -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); |
