translate /me

This commit is contained in:
lickthecheese 2020-10-06 15:05:52 -04:00
parent a09cd72332
commit cdd76f00f2
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -23,7 +23,7 @@ class Server(BaseServer):
self.chan = "##xfnw" if self.name == "freenode" else "#xfnw"
await self.send(build("JOIN", [self.chan]))
if line.command == "PRIVMSG" and line.params.pop(0) == self.chan:
text = line.params[0]
text = line.params[0].replace("\1ACTION","*").replace("\1","")
nick = line.source.split('!')[0]
if nick == self.nickname or line.tags and "batch" in line.tags:
return