bot: handle "/me" actions
This commit is contained in:
parent
dee6096af2
commit
3f6ec00ffe
|
@ -80,7 +80,10 @@ 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}")
|
||||
self.connection.privmsg(target, message)
|
||||
if message.startswith("/me "):
|
||||
self.connection.action(target, message[4:])
|
||||
else:
|
||||
self.connection.privmsg(target, message)
|
||||
|
||||
def run_plugin_callbacks(self, event):
|
||||
etype = event.type
|
||||
|
|
Loading…
Reference in a new issue