Block BitBot from getting badges
He can't use them, anyways...
This commit is contained in:
parent
8573ac295d
commit
53a326cf87
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue