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_commands and process_messages concurrently 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 player

  • session – the asyncssh session; its _chan drives raw-mode I/O

  • mode (str) – "rich" (default) or "raw"

  • site – the Django Site for this connection (used to scope universe context)

Return type:

None