Go to file
Marcus Noble 3e3de4724f
Fix url in Makefile
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2024-07-27 11:10:10 +01:00
.dockerignore Initial release 2021-07-07 11:05:36 +01:00
.gitignore Initial release 2021-07-07 11:05:36 +01:00
alertmanager.go Updated alert manager handling 2021-12-24 14:15:39 +00:00
Dockerfile Initial release 2021-07-07 11:05:36 +01:00
go.mod Added Slack webhook handling 2024-07-27 10:24:17 +01:00
go.sum Added Slack webhook handling 2024-07-27 10:24:17 +01:00
LICENSE Initial release 2021-07-07 11:05:36 +01:00
main.go Added Slack webhook handling 2024-07-27 10:24:17 +01:00
Makefile Fix url in Makefile 2024-07-27 11:10:10 +01:00
nexmo.go Switched back to formatted message 2022-02-28 09:26:47 +00:00
payload.go Add support for general markdown messages 2023-04-25 21:08:12 +01:00
README.md Added Slack webhook handling 2024-07-27 10:24:17 +01:00
slack.go Strip newlines from Slack payload 2024-07-27 11:09:40 +01:00

Tank

A webhook handler to send messages to a Matrix homeserver.

Example

curl -X "POST" "http://localhost:3000/" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "message": "Test webhook",
  "type": "text",
  "roomID": "example"
}'

Features

  • Send text messages to a room
  • Send notice messages to a room
  • Integrations:
    • Alertmanager - Use the /alertmanager endpoint
    • Slack - Use the /slack endpoint
    • Nexmo SMS - Use the /nexmo/sms endpoint

Building from source

With Docker:

make docker-build

Standalone:

make build

Contributing

If you find a bug or have an idea for a new feature please raise an issue to discuss it.

Pull requests are welcomed but please try and follow similar code style as the rest of the project and ensure all tests and code checkers are passing.

Thank you 💛

License

See LICENSE