interaction-kit icon indicating copy to clipboard operation
interaction-kit copied to clipboard

Look into ngrok alternatives and configuration

Open IanMitchell opened this issue 3 years ago • 1 comments

Not everyone will want to use ngrok, some will have premium, etc - we should look into ways of accommodating them.

IanMitchell avatar Oct 16 '22 04:10 IanMitchell

Something like this could potentially work as an option; sending responses over the REST API in dev (after receiving them over the Gateway) means you get actual error messages.

This wouldn't work for any bot without a Bot User, but Interaction Kit already pushes users to make a Bot User so maybe not an issue?

EDIT: the script essentially takes a token, URL (probably localhost) and port and forwards Interactions received on the Gateway to that host - some extra config on the bot's end with keys is required too which is a bit of a pain.

Stalruth avatar Oct 19 '22 01:10 Stalruth