A maubot that executes code.
The bot is triggered by a specific message prefix (defaults to !exec
) and
executes the code in the first code block.
!exec ```python print("Hello, World!") ```
Standard input can be added with another code block that has stdin
as the
language:
!exec ```python print(f"Hello, {input()}") ``` ```stdin maubot ```
When the bot executes the code, it'll reply immediately and then update the output using edits until the command finishes. After it finishes, the reply will be edited to contain the return values.
If running in userbot mode, the bot will edit your original message instead of making a new reply message.
Currently, the bot supports python
and shell
as languages.