bot: handle "/me" actions

master
dece 4 years ago
parent dee6096af2
commit 3f6ec00ffe

@ -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):

Loading…
Cancel
Save