Skip to content

Lepovirta/slackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSD3 License

slackbot

A bot for Slack. Easy way to add new commands for slack channels.

Uses slack-api for Slack RTM API.

Installation

Use stack to install the packages and build the project.

Commands

Check out existing commands in SlackBot.Commands. For new commands please create a PR.

Commands must have public function cmd :: Command.

data Command = Command
    { cName :: Text
    , cDesc :: Text
    , cFunc :: Text -> IO Text
    }
Attr Meaning
name Name of the command. Will be used in Slack like this: !name blabla
desc Description will be shown by the help command.
func Function of the command.

Releases

No releases published

Packages

No packages published