Add channel id by name message

This commit is contained in:
BreadTube 2026-01-09 19:56:27 +09:00
commit 4cd8fb80da
5 changed files with 45 additions and 12 deletions

View file

@ -16,7 +16,9 @@ def main():
del arguments
bot_token = Path('data/discord_bot_token.txt').read_text(encoding='utf-8').strip()
manager = Bot(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 = Bot(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: