bot: handle "/me" actions
This commit is contained in:
parent
dee6096af2
commit
3f6ec00ffe
|
@ -80,6 +80,9 @@ class Bot(irc.client.SimpleIRCClient, Logger):
|
||||||
"""Send message to target after a slight delay."""
|
"""Send message to target after a slight delay."""
|
||||||
time.sleep(self.config["speak_delay"])
|
time.sleep(self.config["speak_delay"])
|
||||||
self.log_d(f"Sending to {target}: {message}")
|
self.log_d(f"Sending to {target}: {message}")
|
||||||
|
if message.startswith("/me "):
|
||||||
|
self.connection.action(target, message[4:])
|
||||||
|
else:
|
||||||
self.connection.privmsg(target, message)
|
self.connection.privmsg(target, message)
|
||||||
|
|
||||||
def run_plugin_callbacks(self, event):
|
def run_plugin_callbacks(self, event):
|
||||||
|
|
Loading…
Reference in a new issue