relay

Log | Files | Refs

commit cdd76f00f28448b743b4a4354bbe0e25a2a3a9b0
parent a09cd723328b0a56ff0018167933fe8eda6ceae0
Author: lickthecheese <lickthecheese@linuxmail.org>
Date:   Tue,  6 Oct 2020 15:05:52 -0400

translate /me

Diffstat:
Mbot.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py @@ -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