Slack API from CommonLisp
#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/
#!/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