revoltchat / backend

Monorepo for Revolt backend services.
https://developers.revolt.chat/api/
Other
1.14k stars 125 forks source link

feature request: Outgoing WebHooks #208

Open JeroenAdam opened 1 year ago

JeroenAdam commented 1 year ago

What do you want to see?

Outgoing WebHooks: a listener on specified/all public channels and direct messages.

Each trigger should result in an outgoing http request to a specified endpoint. The http request should contain the message id, the message content, the author, the channel id and the channel name.

Use case: externally process the content of the message and, based on your logic, take action (eg. let a bot add a reaction to the message and send a reply message)

JeroenAdam commented 1 year ago

OK, I found my way connecting with the WebSocket server, I receive all events and I can listen to the Message type. The only thing I'm missing is the channel name (will have to do with channel id).

Not sure if it is useful to keep this feature request open? Any reasons to prefer outgoing http webhookds over ws? Knowing this feature request would be limited to Message(...) alike events only (for bot implementation).