Implement YouTube manager
This commit is contained in:
parent
486cb82773
commit
b958f4fe55
8 changed files with 253 additions and 38 deletions
|
|
@ -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()]])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue