moo.shell.prompt.embed
- async moo.shell.prompt.embed(user, session=None, mode='rich', site=None)
Start the interactive MOO shell for the given user.
Runs
process_commandsandprocess_messagesconcurrently and tears both down together — see Inside the Shell Client for the teardown rationale.- Parameters:
user (
User) – the authenticated Django user whose avatar is the active playersession – the asyncssh session; its
_chandrives raw-mode I/Omode (
str) –"rich"(default) or"raw"site – the Django Site for this connection (used to scope universe context)
- Return type:
None