HTTP api
Opened this issue · 2 comments
mtbentley commented
This would allow users of the api to add features w/out editing Go code, and instead communicate with the bot over an http api.
mtbentley commented
Example slacksoc api (after 5 minutes of thought):
- @slacksoc: pm me a key, slacksoc pms an api key and token, saves those to the db w/ the username of the person who requested it
- There's an endpoint to post a message (which supports many of the same options that the slack api supports)
- There's also an endpoint to add callbacks, which registers a regex and a callback location, and slacksoc makes an http request to that location whenever a message matching that regex is sent (from there either the callback responds with an action, or can do something through 2)
brenns10 commented
Somewhat similar in spirit to brenns10/slacksoc#16