Skip to content
A maubot plugin to execute code.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
exec
.gitignore
.gitlab-ci.yml
LICENSE
README.md
base-config.yaml
maubot.yaml

README.md

exec

A maubot that executes code.

Usage

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.

You can’t perform that action at this time.