casual-simulation / casualos

Casual Open Simulation for the Web
https://ab1.bot
MIT License
48 stars 9 forks source link

Add `os.showAccountInfo()` #343

Closed KallynGowdy closed 7 months ago

KallynGowdy commented 8 months ago

Currently, there is no way for a bot script to request that the account details panel be shown to the user. Instead, the user has to open the chat bar (` key > click profile button on the right side).

This task is to add a function, os.showAccountInfo() that requests that the account info dialog be shown to the user. It should return a promise that resolves once the account info has been shown. Additionally, the chat bar should be shown to give the user a slight hint as to where the dialog can be accessed manually. If the user is not logged in, then function should do nothing but resolve the promise.