From e364098010ce088f949e1edd96cff0450b3327a5 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Fri, 15 Sep 2017 14:23:02 -0700 Subject: [PATCH] added back some bot love --- partybot-matrix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/partybot-matrix.py b/partybot-matrix.py index 99c2808..98888e6 100644 --- a/partybot-matrix.py +++ b/partybot-matrix.py @@ -37,8 +37,7 @@ def karma_cb(room, event): for mxid in members: alias = re.search('@(pnut_)?([^:]+)', mxid).group(2) - if alias.lower() == handle.lower(): - print('match') + if alias.lower() == handle.lower() or handle.lower() == 'partybot': if sign == '++': rs.incr("partybot:k_" + event['room_id'] + "@" + handle)