Skip to content

Instantly share code, notes, and snippets.

@erik
Created August 26, 2010 23:23
Show Gist options
  • Save erik/552454 to your computer and use it in GitHub Desktop.
Save erik/552454 to your computer and use it in GitHub Desktop.
(defplugin
(:bf
"Executes brainfuck."
["bf"]
[{:keys [irc bot channel args]}]
(let [[bf & input] args]
(doseq [x (-> bf
(compile-and-run input)
with-out-str
(#(.split % "\n")))]
(send-message irc bot channel x)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment