|
2 months ago | |
---|---|---|
.gitignore | 2 months ago | |
LICENSE-2.0.txt | 2 months ago | |
README.md | 2 months ago | |
mxqueueproc.py | 2 months ago | |
requirements.txt | 2 months ago |
This is a quickly-thrown-together script which will:
python3 mxqueueproc.py <room ID> <command to run>
If you prefer messages to be redacted rather than ✅-reacted, use
MXQP_REDACT=1 python3 mxqueueproc.py <room ID> <command to run>
e.g.
python3 mxqueueproc.py !some_room_id:example.com youtube-dl
python3 -m venv path/to/venv
. path/to/env/activate
pip install -r requirements.txt
On first run, Matrix Queue Processor will guide you through a login.
You will need:
https://matrix.org
)reivilibre
)nottellingYOUofcourse
)For more complicated commands, it may be worthwhile (or even required) to create e.g. a bash script
#!/bin/bash
set -eu
task=$1
do_something --serious-business --wow=very $1
(set -eu
makes undefined variables and command errors cause failure, so that the bot will report it to you.)
Don't forget to mark it as executable.