fix(pterodactyl): whoops I forgot two

This commit is contained in:
Seaswimmer 2024-03-03 02:01:33 -05:00
parent 0496454030
commit 9b153a4799
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -101,9 +101,9 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
else: else:
await channel.send(f"{achievement_message['username']} has {'completed the challenge' if achievement_message['challenge'] else 'made the advancement'} {achievement_message['achievement']}") await channel.send(f"{achievement_message['username']} has {'completed the challenge' if achievement_message['challenge'] else 'made the advancement'} {achievement_message['achievement']}")
if json.loads(message)['event'] == 'status': if message['event'] == 'status':
old_status = await config.current_status() old_status = await config.current_status()
current_status = json.loads(message)['args'][0] current_status = message['args'][0]
if old_status != current_status: if old_status != current_status:
await config.current_status.set(current_status) await config.current_status.set(current_status)
if await config.console_channel() is not None: if await config.console_channel() is not None: