Skip to content

Instantly share code, notes, and snippets.

@aperiodic
Created November 11, 2011 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aperiodic/1357108 to your computer and use it in GitHub Desktop.
Save aperiodic/1357108 to your computer and use it in GitHub Desktop.
lazybot config.clj
(let [plugins #{"dictionary" "lmgtfy" "google" "translate" "eball" "utils" "leet"
"clojure" "login" "log" "brainfuck" "whatis" "shorturl" "haskell"
"mail" "timer" "fortune" "rss" "title" "operator" "seen" "sed" "help"
"load" "embedded" "karma" "yesno" "autoreply" "weather"}]
{:servers [REDACTED] ; A list of servers.
:prepends #{"@"} ; The character you want for a prepend. Currently set to @
:weather {:token ""} ; Wunderground token.
:dictionary {:wordnik-key "99c266291da87b231f40a0c8902040da0b568588c25526cff"} ; Wordnik API key.
:sed {:automatic? true}
:max-operations 3 ; The maximum number of operations that can be running at any given time.
:pending-ops 0 ; The number of operations running right now
:help {:admin-add? true ; only admins can add help topics
:admin-rm? true} ; only admins can remove help topics
:clojure {:eval-prefixes {:defaults ["->" "." "," "&" ; prefixes in any channel
#"&\|(.*?)(?=\|&|\|&|$)" ; stuff like &|this|&
#"##(([^#]|#(?!#))+)\s*((##)?(?=.*##)|$)"]
;; list of prefixes NOT to use in certain channels
"#tempchan" ["->"] ; turn this off for testing
"#clojure" [","]}} ; let clojurebot have this one
:servers-port 8080 ; port for plugins that require a webserver
"irc.luckysort.com" {:channels ["#lucky"]
:bot-name "lazybot"
:sed {:blacklist #{"#tempchan2"}}
:bot-password REDACTED
:users {"dan" {:pass REDACTED, :privs :admin}}
:title {:blacklist #{"#foo"}}
:plugins plugins}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment