Loading...
Loading...
Send messages to Matrix (Element) chat rooms. Support for text, markdown, HTML, images, and file attachments.
npx skill4agent add winsorllc/upgraded-carnival matrix-notify{
"homeserver": "https://matrix.org",
"access_token": "YOUR_ACCESS_TOKEN",
"default_room": "!roomid:matrix.org"
}const { sendMessage, uploadFile } = require('./matrix-notify');
// Send text message
await sendMessage({
room: '!roomid:matrix.org',
text: 'Hello from PopeBot!',
format: 'markdown'
});
// Send image
await uploadFile({
room: '!roomid:matrix.org',
file: '/path/to/image.png',
caption: 'Check this out'
});matrix-notify send --room "!roomid:matrix.org" --text "Hello!"
matrix-notify upload --room "!roomid:matrix.org" --file image.png
matrix-notify rooms