Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

apropos

  • Loading branch information...
commit 745c8556f3d71d3ba1acd308187f768e1b00e164 1 parent 31f2f77
@hiredman authored
Showing with 9 additions and 2 deletions.
  1. +1 −0  project.clj
  2. +8 −2 src/clojurebot/core.clj
View
1  project.clj
@@ -16,6 +16,7 @@
[org.danlarkin/clojure-json "1.1"]
[clj-http "0.1.1"]
[swank-clojure "1.3.2"]
+ [com.thelastcitadel/apropos "0.0.1"]
#_[conduit-xmpp "1.0.0-SNAPSHOT"]
]
:main clojurebot.core
View
10 src/clojurebot/core.clj
@@ -23,7 +23,8 @@
rejoin nickserv-id doc-lookup? math? da-math
notice target setup-crons]]
[clojurebot.plugin :only [load-from]]
- [hiredman.clojurebot.simplyscala :only [scala-eval]])
+ [hiredman.clojurebot.simplyscala :only [scala-eval]]
+ [com.thelastcitadel.apropos :refer [apropos]])
(:gen-class))
;; pipelines
@@ -51,7 +52,12 @@
(query a-map)))
(:addressed-plugins config))]
(@(ns-resolve ns action) a-map))))
- false (a-cond ticket-query?
+ false (a-cond (fn [{:keys [message]}]
+ (when message
+ (.startsWith message "apropos ")))
+ (a-arr (fn [{:keys [message]}]
+ (apropos message)))
+ ticket-query?
(a-arr get-ticket-n)
contrib-ticket-query?
Please sign in to comment.
Something went wrong with that request. Please try again.