tidy cloudbot3/refresh code!
This commit is contained in:
parent
f81cf21b57
commit
99e363cc99
12 changed files with 66 additions and 53 deletions
|
@ -25,16 +25,17 @@ def sieve_suite(bot, input, func, kind, args):
|
|||
|
||||
_bucket = buckets[uid]
|
||||
if _bucket.consume(MESSAGE_COST):
|
||||
return input
|
||||
pass
|
||||
else:
|
||||
print("pong!")
|
||||
return None
|
||||
|
||||
|
||||
disabled_commands = conn.config.get('disabled_commands', [])
|
||||
if input.trigger in disabled_commands:
|
||||
return None
|
||||
|
||||
return input
|
||||
|
||||
|
||||
acl = conn.config.get('acls', {}).get(func.__name__)
|
||||
if acl:
|
||||
|
|
Reference in a new issue