Skip to content

A guysbot for Matrix written in Node.js

Notifications You must be signed in to change notification settings

codefreezefi/matrix-guysbot-node

Repository files navigation

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

About

A guysbot for Matrix written in Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published