| Safe Haskell | None |
|---|
Network.Linklater
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.
Constructors
| GroupChannel Text | A public or private group. |
| IMChannel Text | A private conversation with your best friend (or lover?). |
A username: no at-signs, just text!
Here's how you talk.
Constructors
| Message | |
Fields
| |
Like a curiosity about the world, you'll need one of these to say something.
Constructors
| Config | |
Fields
| |
Incoming HTTP requests to the slash function get parsed into one of these babies.
Constructors
| Command | |
Fields
| |