post-filter punctuation too

This commit is contained in:
xfnw 2021-07-26 13:02:00 -04:00
parent 93b6f2978a
commit 38bda3aa43
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ async def go(self, c, n, m):
words = re.sub(r'([\.,\?!])', r' \1', m).split()
if words[0] == 'admin':
return
await self.message(c, ' '.join(await genOut(self, await getNoun(self, words, c))))
await self.message(c, re.sub(r' ([\.,\?!])', r'\1', ' '.join(await genOut(self, await getNoun(self, words, c)))))
async def init(self):