A bot to help facilitate the Matrix Spec Proposal Process.
However it is written in a generic way such that it can be used for any project wanting to make use of a similar process.
git clone https://github.com/matrix-org/mscbot-python && cd mscbot-python
Create a virtual environment and activate it:
virtualenv -p python3 env
source env/bin/activate
Install packages:
pip install -e .
Install Postgres.
Create a user and a database:
sudo -u postgres psql
postgres=# create database mscbot;
postgres=# create user mscbot with encrypted password 'super-strong-password';
postgres=# grant all privileges on database mscbot to mscbot;
Copy and update the config file:
cp sample.config.yaml config.yaml
vi config.yaml
Be sure to enter the postgres user, password and database details from above.
On github:
application/jsonuuid terminal command)On your server:
Edit the config file and
/webhook by default). The bot will listen
here for webhook hits from githubActivate the virtualenv and start mscbot:
source env/bin/activate
python -m mscbot
The following command line options are available:
-c/config - The path to a config file. Defaults to ./config.yaml.Either download the latest release from Dockerhub:
docker pull matrixdotorg/mscbot-python
Or build an image from the source locally:
docker build -t matrixdotorg/mscbot-python .
You'll also probably want a postgres container to hold your database.
Put your config file somewhere and then mount it via a volume.
docker run -v /path/to/config/dir:/config matrixdotorg/mscbot-python python -m mscbot -c /config/config.yaml
See docs/user_guide.md.
Content type
Image
Digest
Size
57.5 MB
Last updated
over 5 years ago
docker pull matrixdotorg/mscbot-python