Skip to content
simple and dirty matrix.org bot based on matrix-python-sdk
Branch: master
Clone or download
Latest commit bf14b3b Jun 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts võtame piirangu maha May 9, 2019
.gitignore ignore Oct 28, 2017
README.md damn room versioning Jun 13, 2019
test-scripts.sh we dont need -e here actually Sep 23, 2017
test-sockets.sh we dont need -e here actually Sep 23, 2017
tiny-matrix-bot.cfg.sample nii Jan 8, 2017
tiny-matrix-bot.py add token fallback Jan 22, 2019
tiny-matrix-bot.service restart service on failure Sep 23, 2017

README.md

tiny-matrix-bot

NB! This bot only works with v1 rooms (see TODO).

simple and dirty matrix.org bot based on matrix-python-sdk

no support, no warranty

works for me, but pull requests within reasonable limitations are welcome!

sudo apt install python3 python3-requests
git clone https://github.com/4nd3r/tiny-matrix-bot
git clone https://github.com/matrix-org/matrix-python-sdk
cd tiny-matrix-bot
mkdir data
ln -s ../matrix-python-sdk/matrix_client
cp tiny-matrix-bot.cfg.sample tiny-matrix-bot.cfg
vim tiny-matrix-bot.cfg
cp tiny-matrix-bot.service /etc/systemd/system
systemctl enable tiny-matrix-bot
systemctl start tiny-matrix-bot
systemctl reload tiny-matrix-bot
systemctl stop tiny-matrix-bot

scripts must have execute bit - chmod +x

mkdir sockets for sockets

TODO

  • REPLACE MATRIX-PYTHON-SDK WITH MATRIX-NIO!!!11
  • make code better (right)
  • document all config variables
  • define scripts dependencies
  • move config (re)load into separate func
You can’t perform that action at this time.