diff --git a/botbotbot/__main__.py b/botbotbot/__main__.py index 25b313b..511d9f9 100644 --- a/botbotbot/__main__.py +++ b/botbotbot/__main__.py @@ -11,7 +11,7 @@ from .ai import AIBot description = """BotBotBot""" logger = logging.getLogger("botbotbot") -logging.basicConfig(level=logging.DEBUG) +logging.basicConfig(level=logging.INFO) with open("config.toml", "rb") as config_file: config = tomllib.load(config_file) @@ -234,7 +234,7 @@ async def voice_random_nicks(member, before, after): vo = await after.channel.connect() await asyncio.sleep(random.randrange(10)) - vo.play(source) + await vo.play(source, wait_finish=True) await asyncio.sleep(random.randrange(60)) await vo.disconnect()