Implement video message configuration

* Config is update when new key is added (always fully explicit)
This commit is contained in:
BreadTube 2025-10-29 21:32:45 +09:00
commit f59982f745
3 changed files with 36 additions and 9 deletions

View file

@ -14,6 +14,7 @@ class Config:
unmanaged_categories: str = ''
youtube_channel_refresh_interval: float = 3600
youtube_channel_video_count: int = 10
youtube_channel_video_message: str = '[{{video_title}}](https://www.youtube.com/video/{{video_id}})'
def to_str(self) -> str:
return '\n'.join(['config', *[f'{k}={v}' for k, v in asdict(self).items()]])