Banned users env, access validator, removed silent command, code quality improvements

This commit is contained in:
miloszowi
2021-10-08 15:25:47 +02:00
parent d05d0c0904
commit 431b004284
28 changed files with 268 additions and 261 deletions

View File

@@ -5,7 +5,6 @@ not_left = '{} did not join group `{}` before'
mention_failed = 'There are no users to mention'
no_groups = 'There are no groups for this chat'
start_text = """
Hello there
I am @everyone\_mention\_bot
@@ -32,4 +31,4 @@ To display all members in a group:
You can also try to tag me @everyone\_mention\_bot and then enter group name
Possible results will be displayed
"""
"""

View File

@@ -13,3 +13,5 @@ MONGODB_USERNAME = os.environ['MONGODB_USERNAME']
MONGODB_PASSWORD = os.environ['MONGODB_PASSWORD']
MONGODB_HOSTNAME = os.environ['MONGODB_HOSTNAME']
MONGODB_PORT = os.environ['MONGODB_PORT']
BANNED_USERS = os.environ['BANNED_USERS'].split(',') or []