-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add balance functions to stats command #103
Conversation
The grant balance output could also include the expiration date, let me know if I should add it. |
Probably better to explicitly list admin(s) in the .env, will test and update PR soon. |
updated functions accordingly improved (?) stats output look
Added ADMIN_USER_IDS to .env, user ids here have the same access as ALLOWED_TELEGRAM_USER_IDS but without budget restrictions. |
Thanks @AlexHTW, looks good! |
Thanks for the merge and the new release @n3d1117 ! |
Done! Sorry, release notes were auto-generated |
Could probably optimize a bit by calling get_remaining_budget in is_within_budget, not sure if the redundancy is too bad right now.