e17a9f9c29
Remove pytest configuration file and update test files for async compatibility
...
- Deleted `pytest.ini` to streamline test configuration.
- Added `pytest_asyncio` plugin support in `conftest.py`.
- Marked `test_monitor` as an async test to ensure proper execution in an asynchronous context.
2025-08-27 22:37:17 +03:00
86b6903920
Add auto unban functionality and update related tests and dependencies
2025-08-27 20:56:22 +03:00
748670816f
Refactor keyboard layout for improved organization and add admin keyboard tests
...
- Updated the keyboard layout in `get_reply_keyboard` and `get_reply_keyboard_admin` functions to use `row` for better organization of buttons.
- Added unit tests for the admin keyboard to verify button arrangement and functionality.
- Ensured that each button is placed in its own row for clarity in the user interface.
2025-08-27 20:20:53 +03:00
dc0e5d788c
Implement OS detection and enhance disk monitoring in ServerMonitor
...
- Added OS detection functionality to the ServerMonitor class, allowing for tailored disk usage and uptime calculations based on the operating system (macOS or Ubuntu).
- Introduced methods for retrieving disk usage and I/O statistics specific to the detected OS.
- Updated the process status check to return uptime information for monitored processes.
- Enhanced the status message format to include disk space emojis and process uptime details.
- Updated tests to reflect changes in process status checks and output formatting.
2025-08-27 20:09:48 +03:00
0b2440e586
Add server monitoring functionality and update Makefile and requirements
...
- Introduced a new server monitoring module in `run_helper.py` with graceful shutdown handling.
- Updated `.gitignore` to include PID files.
- Added `test-monitor` target in `Makefile` for testing the server monitoring module.
- Included `psutil` in `requirements.txt` for system monitoring capabilities.
2025-08-27 01:17:15 +03:00
9688cdd85f
Refactor admin handlers to improve access control and state management. Added checks for admin rights in ban functions and streamlined router inclusion order in main bot file. Updated keyboard layouts for better user experience and removed unused state definitions.
2025-08-27 00:28:32 +03:00
62af3b73c6
Enhance database connection handling in BotDB class with error checking for file existence and access permissions. Implement methods for database integrity checks and WAL file cleanup. Update database initialization to use absolute project path for improved reliability.
2025-08-26 19:33:11 +03:00
86773cfe20
fix
2025-08-26 19:20:25 +03:00
264818b0a6
Merge branch 'master' of https://github.com/KerradKerridi/telegram-helper-bot
2025-08-26 19:06:01 +03:00
706d91e739
Update requirements.txt to streamline dependencies, adding aiogram and pytest-asyncio while removing unused packages. Organized sections for core dependencies, logging, testing, and development tools.
2025-08-26 19:02:39 +03:00
ANDREY KATYKHIN
1a02f3c278
Merge pull request #8 from KerradKerridi/merge-voice-1
...
Merge voice 1
2025-08-26 18:57:53 +03:00
8bb098764d
Refactor module imports to ensure project root is included in sys.path for both run_helper and voice_bot. Enhance database user insertion with backward compatibility for emoji column. Update user info handling to check username and full name more robustly. Improve emoji handling with fallback options for environments lacking the emoji package.
2025-08-26 18:56:47 +03:00
70d6ad9a6e
Merge remote-tracking branch 'origin/voice-1' into merge-voice-1
2025-08-26 18:27:20 +03:00
ANDREY KATYKHIN
94ece4e307
Merge pull request #7 from KerradKerridi/dev-4
...
Dev 4
2025-08-26 17:41:36 +03:00
61dd85035d
Update log retention period to 30 days in custom logger and add comment on log cleanup mechanism.
2025-08-26 17:23:20 +03:00
fee22f8ad4
Enhance database handling and improve HTML safety across the bot. Added async methods for blacklist checks, updated connection settings for SQLite, and implemented HTML escaping for user inputs and messages to prevent potential issues. Adjusted middleware latency and refactored various handlers for better performance and reliability.
2025-08-26 16:51:28 +03:00
7b6abe2a0e
WIP: Temporary commit for branch move
2025-08-26 02:14:11 +03:00
Andrey
0c29609e4a
hot fix
2024-11-17 22:43:41 +03:00
Andrey
cb0f94c718
some fix
2024-11-17 22:10:45 +03:00
b2c27040aa
some fix with emoji function
2024-11-17 22:09:37 +03:00
Andrey
47c5b2f083
hotfix
2024-11-17 01:20:51 +03:00
Andrey
e0e0a6de51
add new func in voice bot
2024-11-17 00:50:55 +03:00
502c07a2c9
some fix
2024-11-16 18:45:05 +03:00
Andrey
ee9eafa09f
some fix
2024-11-14 00:24:37 +03:00
ANDREY KATYKHIN
b8b92434ff
Merge pull request #5 from KerradKerridi/dev-3
...
refactor voice_bot
2024-11-14 00:06:13 +03:00
Andrey
767acacc18
refactor voice_bot
2024-11-14 00:05:37 +03:00
ANDREY KATYKHIN
bc454fce8c
Merge pull request #4 from KerradKerridi/dev-3
...
fix with html tags
2024-10-31 22:00:09 +03:00
5c3fece394
fix with html tags
2024-10-31 21:58:46 +03:00
ANDREY KATYKHIN
198b522976
Merge pull request #3 from KerradKerridi/dev-3
...
Dev-3 Добавил новые функции MediaGroup, разные типы файлов, ответы пользователю
2024-07-21 23:24:44 +05:00
Andrey
5050767b60
add new func for ban
2024-07-21 21:22:45 +03:00
Andrey
33fa84943d
add answer for user
2024-07-21 13:24:18 +03:00
KatykhinAA
0704e6b3fe
all type message can process
2024-07-20 22:41:48 +03:00
KatykhinAA
0b7f718f8a
refactor MediaGroup. Add database
2024-07-20 16:54:43 +03:00
KatykhinAA
54234e59ec
some fix
2024-07-20 14:18:58 +03:00
KatykhinAA
095e0398d0
some fix
2024-07-18 23:30:41 +03:00
KatykhinAA
a3b53d26e2
add mediaGroup func
2024-07-17 00:15:15 +03:00
KatykhinAA
88889fe87c
mediaGroup start work
2024-07-16 22:25:32 +03:00
Andrey
3a30edc1ab
HOT_FIX_3 add blacklist
...
fix db init
2024-07-16 21:55:22 +03:00
Andrey
09a071c014
HOT_FIX_2 for handle_start_message
2024-07-15 23:46:05 +03:00
Andrey
01f6cbd37d
HOT FIX for handle_start_message
2024-07-15 23:10:32 +03:00
ANDREY KATYKHIN
3cb487b617
Merge pull request #2 from KerradKerridi/dev-1
...
Dev-1
2024-07-16 00:36:40 +05:00
KatykhinAA
f7f6fa5482
some fix
2024-07-15 22:28:36 +03:00
KatykhinAA
1a0344d0e8
migrate to aiogram 3.10.0
2024-07-14 21:22:33 +03:00
KatykhinAA
24ac638433
some fix
2024-07-13 12:42:21 +03:00
KatykhinAA
f2dd9f4b42
refactor suggest, media_group doesn't work
2024-07-13 01:23:48 +03:00
KatykhinAA
47050fd599
add logging, refactor
2024-07-11 22:59:58 +03:00
KatykhinAA
66f3a870c4
some refactor
2024-07-11 00:32:19 +03:00
KatykhinAA
f2e44ddb29
add tests, some fixes
2024-07-10 23:18:36 +03:00
KatykhinAA
7860d4f5c0
add logging to db
2024-07-06 22:06:44 +03:00
Andrey
9788a763c4
some fix
2024-07-06 20:53:33 +03:00