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>"}'
npm ci
Configure these environment variables (e.g. by using direnv). See .envrc.dist
for an example.
node main.js
Then invite the bot user to the rooms it should be active in. Only public and unencrypted rooms are supported.
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