bot: handle "/me" actions

This commit is contained in:
dece 2020-10-09 10:44:21 +02:00
parent dee6096af2
commit 3f6ec00ffe

View file

@ -80,6 +80,9 @@ class Bot(irc.client.SimpleIRCClient, Logger):
"""Send message to target after a slight delay."""
time.sleep(self.config["speak_delay"])
self.log_d(f"Sending to {target}: {message}")
if message.startswith("/me "):
self.connection.action(target, message[4:])
else:
self.connection.privmsg(target, message)
def run_plugin_callbacks(self, event):