dreeves / omnibot

Discord/Slack bot to play a dictionary guessing game and other things
1 stars 0 forks source link

Webhooks! I mean an HTTP API! #159

Open dreeves opened 1 year ago

dreeves commented 1 year ago

Desiderata

I have a use case for sending something to Omnibot from an arbitrary app and having Omnibot say that something on Discord.

Can we make a POC of that?

Let's discuss in the comments and replace this top-level description with the design we settle on.

dreeves commented 1 year ago

PS: Prereq = rate-limiting? 😬

maybe part of the initial version could be that it remembers the timestamp of the last webhook and suppresses it (and sends an error to just #botspam?) if it's been less than an hour?

dreeves commented 1 year ago

Note misnomer: I called this "webhooks" but it's really just an API. A webhook would be like if you could specify a URL for Omnibot to hit whenever certain events happened. This is the other way around: hitting an Omnibot URL to make events happen.