Skip to content

m0cchi/cl-slack

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 

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

About

Slack API from cl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published