relay
A service that runs as a discord bot and proxies web requests to it.
Install
- Create a new app at https://discordapp.com/developers/applications, and in the app, create a bot user.
- Get the client ID from the app settings page and then visit this page to connect the bot:
- Start the app
- Send any json to
/hook
Expanding
Right now, all of the json types are defined in lib/proxy.go
. If your json isn't a simple map[string]string
, you can create a new type and add it to the file. You can see existing types in the docs.
Please add a test for each new type you add, so we don't break in the future.