Skip to content

Instantly share code, notes, and snippets.

@sternenseemann
Created June 15, 2016 15:09
Show Gist options
  • Save sternenseemann/3bd73c8075b35f315c46720278404770 to your computer and use it in GitHub Desktop.
Save sternenseemann/3bd73c8075b35f315c46720278404770 to your computer and use it in GitHub Desktop.
(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