Implement YouTube manager

This commit is contained in:
BreadTube 2025-09-26 20:59:38 +09:00 committed by Corentin
commit b958f4fe55
8 changed files with 253 additions and 38 deletions

View file

@ -11,6 +11,8 @@ class Config:
bot_channel_init_retries: int = 3
bot_message_duration: float = 150.
request_timeout: float = 3.
youtube_channel_refresh_interval: float = 3600
youtube_channel_video_count: int = 10
def to_str(self) -> str:
return '\n'.join(['config', *[f'{k}={v}' for k, v in asdict(self).items()]])