Skip to content

fmapfmapfmap/slack-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bindings to the Slack RTM API.

More information can be found here

Example

module EchoBot where

import Web.Slack
import Web.Slack.Message

myConfig :: SlackConfig
myConfig = SlackConfig
         { slackApiToken = "..." -- Specify your API token here
         }


echoBot :: SlackBot ()
echoBot (Message cid _ msg _ _ _) = sendMessage cid msg
echoBot _ = return ()

main :: IO ()
main = runBot myConfig echoBot ()

About

Haskell bindings to the Slack RTM API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 97.3%
  • Nix 2.7%