post-filter punctuation too

This commit is contained in:
xfnw 2021-07-26 13:02:00 -04:00
parent 93b6f2978a
commit 38bda3aa43

View file

@ -95,7 +95,7 @@ async def go(self, c, n, m):
words = re.sub(r'([\.,\?!])', r' \1', m).split() words = re.sub(r'([\.,\?!])', r' \1', m).split()
if words[0] == 'admin': if words[0] == 'admin':
return 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): async def init(self):