Created
June 15, 2016 15:09
-
-
Save sternenseemann/3bd73c8075b35f315c46720278404770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ql:quickload "chirp") | |
(ql:quickload "trivial-http") | |
(defparameter chirp:*oauth-api-key* | |
"toplel") | |
(defparameter chirp:*oauth-api-secret* | |
"lolnope") | |
(defparameter chirp:*oauth-access-token* | |
"roflmao") | |
(defparameter chirp:*oauth-access-secret* | |
"kek") | |
(chirp:stream/statuses/filter | |
#'(lambda (message) | |
(when (typep message 'chirp:status) | |
(format t "gonna post '~A'~%" (chirp:text-with-expanded-urls message)) | |
(trivial-http:http-post | |
"http://flipdot.openlab-augsburg.de/queue/add" | |
"application/x-www-form-urlencoded" | |
(format | |
nil | |
"text=@~A: ~A" | |
(chirp:screen-name (chirp:user message)) | |
(chirp:xml-decode (chirp:text message))))) | |
T) :track '("#justopenlabthings")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment