Implement YouTube manager
This commit is contained in:
parent
486cb82773
commit
b958f4fe55
8 changed files with 253 additions and 38 deletions
5
bot.py
5
bot.py
|
|
@ -16,8 +16,9 @@ def main():
|
|||
del arguments
|
||||
|
||||
bot_token = Path('data/discord_bot_token.txt').read_text(encoding='utf-8').strip()
|
||||
manager = DiscordManager(
|
||||
bot_token=bot_token, guild_id=guild_id, log_level=logging.DEBUG if debug_mode else logging.INFO)
|
||||
yt_api_key = Path('data/google_api_key.txt').read_text(encoding='utf-8').strip()
|
||||
manager = DiscordManager(bot_token=bot_token, guild_id=guild_id, yt_api_key=yt_api_key,
|
||||
log_level=logging.DEBUG if debug_mode else logging.INFO)
|
||||
try:
|
||||
manager.run()
|
||||
except KeyboardInterrupt:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue