From e0f05384a2da98531e1e0e745e894d3382f2d8f8 Mon Sep 17 00:00:00 2001 From: vladus Date: Fri, 9 Feb 2024 20:09:30 +0300 Subject: [PATCH] update todo --- bot.py | 1 + example.env | 1 + 2 files changed, 2 insertions(+) diff --git a/bot.py b/bot.py index 10fcc9a..2592e5a 100644 --- a/bot.py +++ b/bot.py @@ -61,6 +61,7 @@ OK_APPLICATION_KEY = os.getenv('OK_APPLICATION_KEY') OK_APPLICATION_SECRET_KEY = os.getenv('OK_APPLICATION_SECRET_KEY') OK_GROUP_ID = os.getenv('OK_GROUP_ID') ARRAY_INLINE = [] +# TODO: change username in message_handlers to id ALLOWED_USERS = json.loads(os.environ['ALLOWED_USERS']) bot = Bot(token=API_BOT_TOKEN) diff --git a/example.env b/example.env index dc1b56c..3e85e37 100644 --- a/example.env +++ b/example.env @@ -10,4 +10,5 @@ SD_PORT = '7861' SD_USERNAME = 'user' SD_PASSWORD = '1234' DEBUG = 'no' # 'yes' to debug +# TODO: change usarnames to id ALLOWED_USERS = '["username1", "username2", "usernameN"]' \ No newline at end of file