Skip to content

The slack library code (API handling + message parsing), which we use in both the clojurians-log and the slackbot

Notifications You must be signed in to change notification settings

GaiwanTeam/clj-slack

Repository files navigation

clj-slack

clj-slack is a Clojure library with several independent Slack libraries. These Slack libraries are designed with an intention to make them work together easily, which means that they both depend on common configuration, message format, and database schema.

Key features

  • wrap Slack REST API with middleware handling cursor-based pagination and HTTP retry
  • handle Slack markdown message format

Requirement

This library requires Java 11.

Usage

(ns slack-api
  (:require [co.gaiwan.clj-slack.core :as clj-slack]))

;; export environment variable SLACK_TOKEN
(def conn (clj-slack/conn))

;; Using the pre-decorated API to get all the emoji
(clj-slack/get-emoji conn)

Test

bin/kaocha

License

  Copyright © 2017-2021 Arne Brasseur and contributors   Licensed under the term of the Mozilla Public License 2.0, see LICENSE.

About

The slack library code (API handling + message parsing), which we use in both the clojurians-log and the slackbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages