summaryrefslogtreecommitdiff
path: root/discordjs/src
diff options
context:
space:
mode:
authorMatthieu Pignolet <matthieu@matthieu-dev.xyz>2024-06-06 14:41:26 +0400
committerMatthieu Pignolet <matthieu@matthieu-dev.xyz>2024-06-06 14:41:26 +0400
commit8b0ad9670d39e7632c9e93f8506b76977ce85b9d (patch)
tree5fff369edbf21cbe6dd530e7b4ac3d046f41cde7 /discordjs/src
parenta5fbafbf18822640c9f2801fd69f0fcd10add89c (diff)
remove more chars
Diffstat (limited to 'discordjs/src')
-rw-r--r--discordjs/src/index.mjs3
1 files changed, 3 insertions, 0 deletions
diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs
index 73b5120..f46a434 100644
--- a/discordjs/src/index.mjs
+++ b/discordjs/src/index.mjs
@@ -31,6 +31,9 @@ const cutWord = (sentence) => {
let lastWord = sentence
.replaceAll("?", "")
.replaceAll("!", "")
+ .replaceAll(".", "")
+ .replaceAll(",", "")
+ .replaceAll(";", "")
.trim()
.split(" ")
.slice(-1)[0]