jubot.core

Jubot core

create-system-fn

(create-system-fn & {:keys [name handler entries], :or {entries []}})
Returns function to create stuartsierra.component system.

Params
  :name    - a bot's name
  :handler - a handler function
  :entries - a sequence of schedule entries

Return
  (fn [{:keys [adapter brain] :as config-option}])

DEFAULT_ADAPTER

Default adapter's name

DEFAULT_BOTNAME

Default bot's name

DEFAULT_BRAIN

Default brain's name

jubot

(jubot & {:keys [ns-regexp]})
Returns jubot -main function.

Params
  :ns-regexp - a regular-expression which specifies bot's namespace.
               if a handler and entries are omitted,
               these are collected automatically from the specified namespace.

Return
  (fn [& args])