Created
July 26, 2010 10:38
-
-
Save raek/490405 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (ns se.raek.trattern | |
| (:use irclj.irclj)) | |
| (defn on-message [{:keys [nick channel message irc]}] | |
| (try | |
| (when (re-find #"tratt" message) | |
| (send-message irc channel "*TRollkarlshATT*")) | |
| (catch Exception _ nil))) | |
| (defonce bot (connect (create-irc {:name "trattern", :server "irc.quakenet.org", :fnmap {:on-message #'on-message}}) :channels ["#d1d"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment