added admin_user_ids variable to env

updated functions accordingly
improved (?) stats output look
This commit is contained in:
AlexHTW
2023-03-25 00:12:14 +01:00
parent 17028b8e57
commit be35c811c9
4 changed files with 30 additions and 16 deletions

View File

@@ -51,6 +51,7 @@ def main():
telegram_config = {
'token': os.environ['TELEGRAM_BOT_TOKEN'],
'admin_user_ids': os.environ.get('ADMIN_USER_IDS', '-'),
'allowed_user_ids': os.environ.get('ALLOWED_TELEGRAM_USER_IDS', '*'),
'monthly_user_budgets': os.environ.get('MONTHLY_USER_BUDGETS', '*'),
'monthly_guest_budget': float(os.environ.get('MONTHLY_GUEST_BUDGET', '100.0')),