added back some bot love

This commit is contained in:
Morgan McMillian 2017-09-15 14:23:02 -07:00
parent a6b85e6298
commit e364098010

View file

@ -37,8 +37,7 @@ def karma_cb(room, event):
for mxid in members: for mxid in members:
alias = re.search('@(pnut_)?([^:]+)', mxid).group(2) alias = re.search('@(pnut_)?([^:]+)', mxid).group(2)
if alias.lower() == handle.lower(): if alias.lower() == handle.lower() or handle.lower() == 'partybot':
print('match')
if sign == '++': if sign == '++':
rs.incr("partybot:k_" + event['room_id'] + "@" + handle) rs.incr("partybot:k_" + event['room_id'] + "@" + handle)