Vladless
7623f339bc
ruff formatting
2025-02-06 13:53:02 +03:00
Vladless
49eb0e68a1
change_location/CASHBACK/logging/bug_fixes
2025-02-02 02:11:57 +03:00
Zakhar Izmaylov
bf35156455
Remove check_online_users function and minor import reorganization
...
- Removed unused check_online_users function from notifications handler
- Reorganized imports in notifications.py and utils.py
- Fixed TimeoutError import in subscriptions.py
2025-01-31 00:08:31 +03:00
GitHub Actions
720c145aa3
Auto-format code with Ruff using pyproject.toml
2025-01-30 20:36:20 +00:00
Zakhar Izmaylov
239426f6d5
Merge branch 'main' of https://github.com/izzzzzi/Solo_bot
2025-01-30 23:35:50 +03:00
Zakhar Izmaylov
899da825cb
Refactor and improve security with cryptographically secure random generation
...
- Replace `random` module with `secrets` for cryptographically secure random choices
- Update type hints for async API methods in client.py
- Optimize file reading with aiofiles in multiple handlers
- Improve error handling and logging in various modules
- Update Python target version to 3.12 in pyproject.toml
- Remove unused imports and improve code quality
2025-01-30 22:35:09 +03:00
Capybara-z
69dcef073e
Расчет времени для исекших уведомлений для DELETE_KEYS_DELAY
...
Добавлена format_time_until_deletion для расчета времени при уведомлении когда подписка истекала.
2025-01-30 21:50:29 +03:00
Zakhar Izmaylov
bb803ab145
Implement new database functions for server and coupon management. Added check_server_name_by_cluster, get_coupon_details, get_referral_by_referred_id, and get_all_keys to enhance data retrieval capabilities. Updated handlers to utilize these new functions, improving code clarity and maintainability. Refactored existing database calls in start.py, utils.py, and keys.py for consistency and better session management.
2025-01-23 11:58:35 +03:00
Zakhar Izmaylov
c2ba4e9ab6
Refactor server management and database interactions. Renamed get_servers_from_db to get_servers for clarity and updated related handlers to utilize session management. Refactored add_server_to_db to create_server for consistency. Improved code readability and maintainability across coupon and notification handlers by streamlining database calls and enhancing error handling.
2025-01-23 11:36:15 +03:00
Zakhar Izmaylov
a2c71a49f2
Refactor and clean up code formatting across multiple files
...
- Consolidated and simplified code formatting by removing unnecessary line breaks and improving readability in various functions.
- Updated the handling of backup file sending in backup.py for better clarity.
- Streamlined error handling and logging messages in several handlers to enhance consistency.
- Adjusted the Makefile to exclude specific files during Ruff checks and formatting.
- Made minor adjustments to function signatures and parameter handling for improved clarity and consistency.
This commit enhances code maintainability and readability without altering functionality.
2025-01-21 08:57:12 +03:00
Zakhar Izmaylov
9da808a024
Delete parse_mode
2025-01-15 02:15:21 +03:00
Vladless
8fdc78c2e8
FlowPayRenew/fixNotify/pay_history/custom/statistic/minorFixes
2025-01-14 04:06:55 +03:00
Zakhar Izmaylov
0d82294bdb
Add antiflood and lint
2025-01-10 14:51:13 +03:00
Vladless
10df771a15
fiatCryptobot/flowPayments/Buttons/fixNotify/BanOfUsers/fixTrial and more
2025-01-09 02:40:39 +03:00
Zakhar Izmaylov
5289548fd9
Fix float get_usd_rate
2025-01-05 23:46:45 +03:00
Zakhar Izmaylov
681fd7d92c
Add get_usd_rate
2025-01-05 23:43:04 +03:00
Vladless
ae22950ce3
fix_refferal/GIFTS/redirect/name_sub and more
2024-12-19 20:37:41 +03:00
Zakhar Izmaylov
76d72ba203
Migrate to ruff
2024-12-13 12:09:20 +03:00
Vladless
7c883b07f9
Revert "Merge pull request #112 from Vladless/hteppl-optimize-sources"
...
This reverts commit fa681fac92 , reversing
changes made to b31c9d2e10 .
2024-12-10 03:53:07 +03:00
hteppl
e0639c7116
Move utils.py to the utils folder
2024-12-08 05:02:41 +03:00
hteppl
1d915f849c
Move util-related files into separated folder + refactor imports
2024-12-08 04:57:20 +03:00
Vladless
5bb83fe904
servers in database
2024-12-01 23:40:37 +03:00
Vladless
122b82253e
update clusters
2024-11-23 20:21:47 +03:00
Zakhar Izmaylov
9673f10af7
Update config
2024-11-22 21:24:55 +03:00
Vladless
6fc26754bf
clusters update
2024-11-19 19:31:31 +03:00
Zakhar Izmaylov
7e2f56f20b
Update Middleware
2024-11-17 23:42:09 +03:00
Zakhar Izmaylov
601598dfd2
Add dry logging
2024-11-16 18:01:28 +03:00
Vladless
4aa521c6b9
servers in clusters/total_gb
2024-11-14 03:03:32 +03:00
Zakhar Izmaylov
27f5b9d43a
Add make and config for formatting
2024-11-10 11:02:15 +03:00
Vladless
adaae41826
bug and fix
2024-11-10 02:25:36 +03:00
Zakhar Izmaylov
800a86c500
Refactoring and fix
2024-11-09 10:36:16 +03:00
Vladless
8f16fa4c1a
v3. Полноценные подписки
2024-11-07 07:53:29 +03:00
Vladless
83d589fff5
Порядок. Исправления мелких недочетов
2024-10-27 01:03:00 +03:00
Vladless
8d4bec79b3
Логи. Уведомления. Тексты
2024-10-25 20:45:12 +03:00