Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 839 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 839 Bytes

Guysbot for the Codefreeze Matrix homeserver

Retrieving an access token

Retrieve an access token for your bot user account:

http -v POST https://<homeserver hostname>/_matrix/client/r0/login <<< '{"type":"m.login.password","user":"<username>","password":"<password>"}'

Set up

npm ci

Configure these environment variables (e.g. by using direnv). See .envrc.dist for an example.

Running

node main.js

Then invite the bot user to the rooms it should be active in. Only public and unencrypted rooms are supported.

Running it on the homeserver

git clone https://github.com/codefreezefi/matrix-guysbot-node
cd matrix-guysbot-node
npm ci
sudo systemd-run --setenv=ACCESS_TOKEN=<access_token> --working-directory=${PWD} node main.js