Ybot - is erlang bot software which inspired with Github hubot. Github hubot is realy cool, but sorry, i don't like javascript and i don't know coffescript. Ybot written fully with erlang/otp and you can write plugins in other different scripting language.
- Fully written with erlang.
- Dependency free (but probably until :))
- Supporting plugins in different technology.
- Now supporting:
- Python plugins
- Ruby plugins
- Shell plugins
- To write a plugin does not need to know erlang
- Very easily extensible
- Irc adapter
Ybot - is chat bot and all time of his life he spends chatting. Add that moment hubot supports:
- Irc
Ybot can execute different commands. Command - is simple chat message. For example chat session:
you: Ybot math 1 + 5
Ybot: Answer: 6
Here are a few simple rules, of structure Ybot plugins.
-
Every message to Ybot must started from
Ybot
label. -
After
Ybot
is command for examplemath
orping
. -
After
Ybot
label and command are command arguments. -
We must have plugin in our plugin directory.
-
Plugin is file with extension of:
- .py
- .rb
- .shell
with python, ruby or shell code.
-
Name of this file must be same as command. For example if we got
Ybot ping
command, we must have plugin ping.py or ping.rb or ping.shell -
Plugin can consist any code and write result to stdout in the end.
Example of treatment to Ybot:
Ybot math 3^2
When Ybot received some chat message for example: Ybot math 3^2
- Ping - simple ping/pong
- Math - calculate math expressions
- Date - Date/time
- Pugme - pugme service plugin
- Erl - computation of erlang expression with tryerlang.org.
Ybot - is open source project under Erlang public license (see LICENSE file). Issues, questions and patches are welcome.
- Fork main ybot repository (https://github.com/0xAX/Ybot).
- Make your changes in your clone of ybot.
- Test it.
- Send pull request.