diff --git a/modules/nlp.py b/modules/nlp.py index 3cf897d..515c983 100644 --- a/modules/nlp.py +++ b/modules/nlp.py @@ -19,7 +19,7 @@ async def rec(self, m): beg = shared.db["beg"] end = shared.db["end"] - words = m.split() + words = re.sub(r"([\.,\?!])", r" \1", m).split() if words[0] == "admin" or len(words) < 2: return