(add-handler! handler-fn)
Registers a new message handler. The handler, handler-fn, should be a function of 3 arguments where the first argument is the bot's prefix, the second is the Discord gateway and the third is the message in the Discord text channel.
Registers a new message handler. The handler, handler-fn, should be a function of 3 arguments where the first argument is the bot's prefix, the second is the Discord gateway and the third is the message in the Discord text channel.
(get-clojure-files folder)
Given a directory, returns all '.clj' files in that folder.
Given a directory, returns all '.clj' files in that folder.
(load-clojure-files-in-folder! folder)
Given a directory, loads all of the .clj files in that directory tree. This can be used to dynamically load extensions defined with defextension or manually calling register-extension! out of a folder.
Given a directory, loads all of the .clj files in that directory tree. This can be used to dynamically load extensions defined with defextension or manually calling register-extension! out of a folder.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close