Block BitBot from getting badges

He can't use them, anyways...
This commit is contained in:
Robert Miles 2020-02-25 14:09:31 -05:00
parent 8573ac295d
commit 53a326cf87
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ def on_privmsg(event):
if BOT is None: return
account = event.tags.get("account",None)
if account is None: return
if account in ("BitBot",): return # ignore BitBot
if not event.target.startswith("#"): return
if timeouts.get(event.target,0)==0:
badge_to_give = random.choices(list(badge_weights.keys()),list(badge_weights.values()))[0]