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.
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.