Safe Haskell | None |
---|
Documentation
say :: Message -> Config -> IO (Response ByteString)Source
The say
function posts a Message, with a capital M, to Slack.
It'll, ahem, need your token first though.
slash :: (Maybe Command -> Application) -> ApplicationSource
A bot server! As if by magic. This acts like a WAI middleware in that you let us wrap around your application.
Where slash commands can come from, and where messages can go.
GroupChannel Text | A public or private group. |
IMChannel Text | A private conversation with your best friend (or lover?). |
Here's how you talk.
Message | |
|
Like a curiosity about the world, you'll need one of these to say something.
Config | |
|
Incoming HTTP requests to the slash function get parsed into one of these babies.
Command | |
|