Example app for Matrix chat integration tools.
This app keeps track of roles within a group chat. It has a keyword that the app responds to ("example") and then the rest of the interface is put together from emoji reactions and replies.
- Clone the repo or fork the REPL
- Copy the
.env.example
file and rename.env
- Register on Matrix (app.element.io is a popular way)
- Copy your user id, homeserver and access token from Element into the
.env
file. Here is a screenshot: - Create a WhatsApp group and invite your testing buddy to it
- Start conversation with @whatsappbot on a homeserver (find homeserver url at in-person event) and follow the login process
- Open the WhatsApp chat you want to connect to through Element
- Copy the room id of the WhatsApp chat into the
.env
file - Run the command
npm install
- Run the command
npm run dev
- Ask your testing buddy to send "hello" to the WhatsApp group
- Marvel in delight at your newfound power
For testing you can replace the whatsAppRoomId with just a normal Matrix room id, makes it easier to test by yourself. You will need an additional matrix user in the group with you, however this isn't too difficult to create.