Skip to content

maubot/exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A maubot plugin to execute code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages