- YouTube Integration: The bot checks for new videos at regular intervals using the YouTube Data API. It retrieves video details such as title, description, views, likes, and comments.
- Discord Notifications: When a new video is detected, the bot sends a notification to a specified Discord channel. The notification includes an embedded message with video details and a link to the video.
- Scheduled Updates: The bot periodically updates the statistics of the announced videos (e.g., views, likes, comments) to keep the Discord message up-to-date.
- Data Persistence: The bot saves its state to a JSON file, allowing it to resume operations after a restart without losing track of the latest video or active notifications.
- Command Handling: The bot responds to specific Discord commands, such as checking for new videos, displaying channel statistics, and restarting the bot.
- Error Handling and Logging: The bot includes comprehensive error handling and logging to ensure smooth operation and facilitate debugging.
- Scheduled Restarts: The bot can be configured to restart at specified intervals to ensure continuous operation and apply any updates.