transitous rewrite: retry on roundtrip connections

This commit is contained in:
Kaaninchen
2026-08-17 19:35:04 +02:00
parent 9cd1f54258
commit d4971ab95b
3 changed files with 5 additions and 178 deletions
+1 -4
View File
@@ -21,16 +21,13 @@ if len(sys.argv) > 1:
async def on_ready():
global _bot_initialized
logger(f"{bot.user} ist online")
if not _bot_initialized:
logger(f"{bot.user} ist online")
_bot_initialized = True
server_id = config.discord.server
server_vc_id = config.discord.vc
channel = validate_channel(bot=bot, server_id=server_id, channel_id=server_vc_id)
await rename_vc(bot, voice_channel=channel)
else:
logger("Reconnected to discord gateway, this wont disturb your current ride")
try:
bot.run(config.discord.token)