A HipChat add-on that allows any user to type e.g. /demotivator pants
and have a relevant image posted to the channel.
- PHP for the callback
Get your API key from HipChat (see setup.html for details)
Open setup.html in your browser to create, view, and delete demotivator callbacks.
After they're ready, just say /demotivator whatever
in your chat room for a fun picture.
If you'd just like to see how the library works, you can get an ephemeral bin from http://requestb.in .
- Use the bin as your webhook URL
- Activate the webhook by posting a relevant message in the HipChat room
- Copy the raw body from RequestBin
- Paste the token and raw json into setup.html, click Submit, and your image should appear in the HipChat room