fix(pterodactyl): whoops I forgot two
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 19s
Actions / Build Documentation (MkDocs) (push) Successful in 24s

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

View file

@ -101,9 +101,9 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
else:
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()
current_status = json.loads(message)['args'][0]
current_status = message['args'][0]
if old_status != current_status:
await config.current_status.set(current_status)
if await config.console_channel() is not None: