ignore the mndp user so it doesn't get karma
This commit is contained in:
parent
0fc4482bdf
commit
7cdd1326ff
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue