Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
98 lines (82 sloc) 2.86 KB
(ns yetibot.core.repl
"Load this namespace when working with yetibot in the REPL or during dev."
[yetibot.core.init :as init]
[yetibot.core.config-mutable :as mconfig]
[ :as chat]
[clojure.stacktrace :refer [print-stack-trace]]
[yetibot.core.db :as db]
[yetibot.core.logging :as logging] ; enable logging to file
[yetibot.core.models.users :as users]
[yetibot.core.webapp.handler :as web]
[yetibot.core.loader :refer [load-commands-and-observers load-ns]]
[yetibot.core.adapters.init :as ai]))
; use a few non-network commands for dev
(defn load-minimal []
(require 'yetibot.core.commands.about :reload)
(require 'yetibot.core.commands.collections :reload)
(require 'yetibot.core.commands.nil :reload)
(require 'yetibot.core.commands.default-command :reload)
(require 'yetibot.core.commands.echo :reload)
(require 'yetibot.core.commands.error :reload)
(require ' :reload)
(require 'yetibot.core.commands.history :reload)
(require 'yetibot.core.commands.observe :reload)
(require ' :reload)
(require 'yetibot.core.commands.users :reload)
(require 'yetibot.core.commands.that :reload)
(require 'yetibot.core.observers.users :reload))
(defn load-minimal-with-db []
(defn start
"Load a minimal set of commands, start the database and connect to chat adapters"
;; commands should be loaded last, just like in yetibot.core.init
;; otherwise multiple hooks can get registered somehow
(defn start-web
(defn start-offline
"Offline repl-driven dev mode"
(defn stop []
(defn reset []
(defn load-all []
(defn help
The Yetibot dev REPL is intended to be used during interactive development
as is commonly practiced in the Clojure community (see if you want to learn more
about interactive development with a REPL).
Here are a few commands it provides:
(start) - run Yetibot with your config and a small subset of core commands.
(reset) - useful during dev to reload and restart Yetibot
(stop) - stop Yetibot - can be useful e.g. to free up the webserver port
(load-all) - load everything instead of the subset of Yetibot
Have more questions?
- Check out the docs at
- Join Slack at and ask away!
HTH! λλλ