Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 766 Bytes

README.org

File metadata and controls

38 lines (27 loc) · 766 Bytes

cl-slack

Slack API from CommonLisp

how to use

#brew install roswell

git clone https://github.com/m0cchi/cl-slack

cd cl-slack

ln -s $(pwd)/cl-slack.asd $HOME/.roswell/ALL/ALL/quicklisp/quicklisp/

sample code

#!/bin/sh
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#

(ql:quickload :cl-slack :silent t)

(defvar token "xxxx-xxx-xxx-xxx")
(defvar channel "C000000")
(defvar client (make-instance 'cl-slack.core:slack-client
                              :token token))

(defun main (&rest argv)
  (declare (ignorable argv))
  (cl-slack.chat:post-message client
                              channel
                              (car argv)
                              '("as_user" "true")))
;; ./post.ros MessageText