Commit Graph

8 Commits

Author SHA1 Message Date
tiennm99 25c5d6d191 Add app ratings retrieval for Apple apps
Introduces a new method getAppRatings in AppStoreScraper to fetch app ratings. Updates CheckAppScoreCommand to display ratings instead of reviews, and refactors AppleAppRequest for improved parameter handling.
2025-11-06 23:50:13 +07:00
tiennm99 3ea1e824fd Refactor app tracking to use app info records
Replaces string-based app tracking in Group with AppleAppInfo and GoogleAppInfo records, enabling storage of additional metadata (e.g., country for Google apps). Updates all related commands and logic to use the new records, improves command argument handling, and enhances output formatting for app lists and checks.
2025-11-06 23:18:49 +07:00
tiennm99 e46c842b3e Add app score checking and refactor app info retrieval
Introduces CheckAppScoreCommand to display app scores and reviews/ratings for Apple and Google apps. Refactors AppStoreScraper and GooglePlayScraper to provide methods for retrieving app scores, reviews, and updated dates, and improves AddAppleAppCommand and AddGoogleAppCommand to validate and fetch app info before adding. Updates AdminRepository to use a common collection and single-key logic, and modifies Constant to use a common collection name.
2025-11-06 22:21:33 +07:00
tiennm99 7363d772ad Update CheckAppCommand.java 2025-11-06 14:40:18 +07:00
tiennm99 8bb2122397 Update StoreScrapeBot.java 2025-11-05 23:10:18 +07:00
tiennm99 5554d75534 Add app and group management commands to bot
Introduces commands for adding, deleting, listing, and checking Apple and Google apps per group, as well as group management commands. Refactors models for app and group storage, adds caching for app data, and updates repositories to support cache expiration. Improves bot initialization and command registration logic.
2025-11-05 23:06:24 +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