Skip to content
forked from OtpChatBot/Ybot

Ybot - is a helpful robot which inspired with Github hubot

License

Notifications You must be signed in to change notification settings

alepharchives/Ybot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ybot

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.

Build Status

Features

  • 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

Adapters

Ybot - is chat bot and all time of his life he spends chatting. Add that moment hubot supports:

  • Irc

Plugins

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.

  1. Every message to Ybot must started from Ybot label.

  2. After Ybot is command for example math or ping.

  3. After Ybot label and command are command arguments.

  4. We must have plugin in our plugin directory.

  5. Plugin is file with extension of:

  • .py
  • .rb
  • .shell

with python, ruby or shell code.

  1. 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

  2. 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

Current plugins

  • Ping - simple ping/pong
  • Math - calculate math expressions
  • Date - Date/time
  • Pugme - pugme service plugin
  • Erl - computation of erlang expression with tryerlang.org.

Contribute

Ybot - is open source project under Erlang public license (see LICENSE file). Issues, questions and patches are welcome.

Author

@0xAX

About

Ybot - is a helpful robot which inspired with Github hubot

Resources

License

Stars

Watchers

Forks

Packages

No packages published