forked from blizzthewolf/SeaCogs
fix(pterodactyl): whoops I forgot two
This commit is contained in:
parent
0496454030
commit
9b153a4799
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue