ignore the mndp user so it doesn't get karma

This commit is contained in:
Morgan McMillian 2020-04-18 07:22:02 -07:00
parent 0fc4482bdf
commit 7cdd1326ff

View file

@ -193,6 +193,9 @@ def on_vote(msg, matcher):
canidate = matcher.group(1) canidate = matcher.group(1)
vote = matcher.group(2) vote = matcher.group(2)
if canidate == config['MNDPUSER']:
return
try: try:
pnutuser, meta = pnutpy.api.get_user("@" + canidate) pnutuser, meta = pnutpy.api.get_user("@" + canidate)
if msg.user.username == pnutuser.username: if msg.user.username == pnutuser.username: