linklater: The fast and fun way to write Slack.com bots

[ bsd3, library, network ] [ Propose Tags ]

A library for writing https://slack.com/ Slack chat bots.

Tutorial: https://github.com/hlian/linklater/wiki/Tutorial

Features you could take advantage of right now, should you choose:

  • Uses Text for state-of-the-art Unicode support;

  • Lovely documentation with no misspelllllings to be found;

  • Supports Slack's formatting syntax

  • Comes with a fast mode (slashSimple) and a power mode (slash)

  • A warm, receptive maintainer with beautiful brown eyes;

  • Fully Haddock'd methods and module;

  • Open source (BSD3).

Shamelessly cute example:


[Skip to Readme]

Modules

[Index]

Flags

Manual Flags

NameDescriptionDefault
developerDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0.0, 1.0.0.1, 1.0.0.2, 1.0.0.3, 2.0.0.0, 2.0.0.1, 2.0.0.2, 2.0.0.3, 3.1.0.0, 3.2.0.0, 4.0.0.0, 4.0.0.1, 4.0.0.2
Change log changelog
Dependencies aeson (>=0.8), base (<=4.7.0.1), base-prelude (>=0.1.16), bytestring (>=0.10.4.0), containers (>=0.5), http-types (>=0.8.5), text (>=1.1.1.3), wai (>=3.0.0.2), wreq (>=0.2) [details]
License BSD-3-Clause
Author Hao Lian <me@haolian.org>
Maintainer me@haolian.org
Category Network
Home page https://github.com/hlian/linklater
Bug tracker https://github.com/hlian/linklater/issues
Source repo head: git clone https://github.com/hlian/linklater
Uploaded by hao at 2015-04-01T20:17:30Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 9579 total (32 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-04-01 [all 1 reports]

Readme for linklater-3.1.0.0

[back to package description]

Who let you in here?

Relax! I'm here to make your life easier. Has your company ever switched to using Slack, and then you wanted to write silly Slack bots in Haskell as a way to learn Haskell?

Really?WowThat was a pretty specific question.

Uh, do you want to be friends? Well let's talk about it later, because right now I have an example for you.

But you'll have to grab me first:

  • cabal sandbox init
  • cabal install linklater

If you don't have Haskell, it's quite easy: Windows, Mac, and Linux.

Show me an example!

  • jpgtobot is a slackbot that pastes the image at foo.jpg.to into chat. It even supports jpgto's flags: so -- r+gif will give you a GIF, randomly selected from all known images named foo. Thanks to the magic of -screen scraping-.

    jpgtobot in action

  • hi5bot lets you high-five people. There are other amazing things it can do too.

Features

  • Uses Text for state-of-the-art Unicode support;
  • Lovely documentation with no misspelllllings to be found;
  • Supports [Slack's formatting syntax](https://api.slack.com/docs/formatting Slack's formatting syntax)
  • Comes with a fast mode (slashSimple) and a power mode (slash)
  • A warm, receptive maintainer with beautiful brown eyes;
  • Fully Haddock'd methods and module;
  • Open source (BSD3).

Contributors

  • Hao Lian, author;
  • Ulysses Popple; and
  • Ian Henry, who showed me the flip (+) foo -> (+ foo) trick;
  • Shields (the Grizzly Bear album), which I listened all the way through for the first time while I was writing this ★★★★.

See also

  • tightrope, a library Ian should really document