From ccebb6b410c73b1c4cd77a58215b5d8de9618c87 Mon Sep 17 00:00:00 2001 From: Eragon Date: Fri, 11 Mar 2022 19:18:36 +0100 Subject: [PATCH] Handle /me and /describe cases --- shoutbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shoutbox.py b/shoutbox.py index 1999249..485cb04 100644 --- a/shoutbox.py +++ b/shoutbox.py @@ -49,6 +49,8 @@ class Shoutbox(object): return callback def post(self, user, msg, channel, users): + if msg.startswith("ACTION"): + msg = msg.replace("ACTION", "/me") if any(user in t for t in users): for i in users: if i[1] == user: