tf2autobot icon indicating copy to clipboard operation
tf2autobot copied to clipboard

Feature: custom webhooks

Open Tolfx opened this issue 2 years ago • 2 comments

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.

Tolfx avatar Jan 20 '23 10:01 Tolfx

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.

Preport avatar Jul 30 '23 11:07 Preport

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.

Tolfx avatar Jul 30 '23 12:07 Tolfx