TF2Autobot / tf2autobot

tf2autobot: an Improved version from tf2-automatic
https://autobot.tf
MIT License
217 stars 80 forks source link

Feature: custom webhooks #1479

Open Tolfx opened 1 year ago

Tolfx commented 1 year ago

Is your feature request related to a problem? Please describe. We currently only have discord webhooks, but as a developer I might want to attach webhooks for custom services that I'm running for various of tasks.

Describe the feature you'd like Just like discord but instead of only discord webhooks I can also add custom urls that will receive webhooks with JSON data of the event that happened.

Preport commented 1 year ago

I don't think there's anything stopping you from plugging in any url into the webhooks. Just make an endpoint that accepts POST requests and put that in to your autobot options.

You should now receive json data on your server in this format.

Tolfx commented 1 year ago

I don't think there's anything stopping you from plugging in any url into the webhooks. Just make an endpoint that accepts POST requests and put that in to your autobot options.

You should now receive json data on your server in this format.

I've already made a fork for this feature, in principle is very simple yes.