Skip to content
forked from yetibot/core

🍶 Core yetibot utilities, extracted for shared use among Yetibot and its various plugins

License

Notifications You must be signed in to change notification settings

jkieberk/yetibot.core

 
 

Repository files navigation

yetibot.core

Build Status CrossClj

Core yetibot utilities, extracted for shared use among yetibot and its various plugins. yetibot.core is not meant to be run standalone, but instead used as a dependency from another project that provides config and optionally other yetibot plugins, private or public.

The main yetibot commands live at: https://github.com/devth/yetibot

Changes in 0.4.0

0.4.0 decomplects mutable and immutable configuration in a non-backward-compatible way. Please see CONFIGURATION docs and port your existing config to the new structure.

Usage

You can depend on this library to build your own yetibot plugins. Building your own commands is dead simple. Here's an example command that adds two numbers:

(ns mycompany.plugins.commands.add
  (:require [yetibot.core.hooks :refer [cmd-hook]]))

(defn add-cmd
  "add <number1> <number2> # Add two numbers"
  [{[_ n1 n2] :match}] (+ (read-string n1) (read-string n2)))

(cmd-hook #"add" ; command prefix
          #"(\d+)\s+(\d+)" add-cmd)

See yetibot's own commands for more complex and diverse examples.

Docs

Change Log

View the change log.

License

Copyright © 2013–2016 Trevor C. Hartman

Distributed under the Eclipse Public License version 1.0.

About

🍶 Core yetibot utilities, extracted for shared use among Yetibot and its various plugins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 99.4%
  • Other 0.6%