Commit Graph

9 Commits

Author SHA1 Message Date
tiennm99 e53b1884c4 Update Main.java 2025-11-14 01:22:08 +07:00
tiennm99 aeba0ccb90 Update Main.java 2025-11-13 21:48:03 +07:00
tiennm99 7349501086 Add scheduled app update checks and notifications
Introduces a scheduled task that checks for apps not updated within a warning threshold and sends notifications to groups. Adds scheduling utilities, constants for scheduling, and logic to format and send update reports for both Apple and Google apps. Also includes a new NonUpdatedApp record and improvements to the Table class for better formatting.
2025-11-07 23:45:30 +07:00
tiennm99 77f4e08946 Refactor config to Environment and add Table utility
Replaces Config with Environment throughout the codebase for environment variable management. Introduces a Table utility class for formatting tabular data in bot commands, refactoring commands to use this for improved output formatting. Removes unused AppType enum. Updates test cases and build configuration for better IDE integration.
2025-11-07 23:11:16 +07:00
tiennm99 4c62fde11f Replace SOURCE_VERSION with SOURCE_COMMIT in config
Renamed the SOURCE_VERSION constant to SOURCE_COMMIT in Config.java and updated its usage in Main.java. The environment variable and related references now consistently use SOURCE_COMMIT to better reflect the tracked value.
2025-11-07 21:08:05 +07:00
tiennm99 cced06fda9 Notify creator on bot startup and enhance config
Added a startup notification to the creator with the current bot version. Refactored ADMIN_IDS to a List, introduced CREATOR_ID and SOURCE_VERSION constants in Config, and improved environment variable handling.
2025-11-07 21:04:02 +07:00
tiennm99 bae876b086 Refactor bot client and add group management commands
Replaced ScoreScrapeBotTelegramClient with StoreScrapeBotTelegramClient and updated related references. Added BaseStoreScraperBotCommand for command error handling. Implemented AddGroupCommand and GetGroupCommand for managing allowed groups via admin commands. Improved CouchbaseUtil to ensure scope and collection creation. Updated logging configuration and environment example. Minor model and repository adjustments for initialization and group handling.
2025-11-04 23:06:46 +07:00
tiennm99 b3cc35b4c2 Integrate Telegram bot with command support
Replaces the previous TelegramBots dependency with the new telegrambots-client, extensions, and longpolling modules. Adds StoreScrapeBot with command handling, including a stub AddGroupCommand, and updates Main to start the bot. Config is extended to support bot credentials and admin IDs, and CouchbaseUtil is simplified to remove example code.
2025-10-30 21:38:39 +07:00
tiennm99 35e88de99a feat(api): init 2025-10-26 09:19:36 +07:00