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 ciConfigure these environment variables (e.g. by using direnv). See .envrc.dist for an example.
node main.jsThen 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