Skip to content

Instantly share code, notes, and snippets.

@raek
Created July 26, 2010 10:38
Show Gist options
  • Select an option

  • Save raek/490405 to your computer and use it in GitHub Desktop.

Select an option

Save raek/490405 to your computer and use it in GitHub Desktop.
(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