Hubot - AnyEvent based https://github.com/github/hubot
$ echo '["help"]' > hubot-scripts.json $ hubot hubot> hubot help hubot> exit
describe scripts name to hubot-scripts.json
example)
[ "help", "shorten", "ascii" ]
each scripts has each congiruation rules.
check it out perldoc Hubot::Scripts::<script>.
perldoc Hubot::Scripts::<script>
described order can affect the bot's action. if "shorten" is appear than "tweet", http://twitter.com/<username>/status/<tweetid> processed twice by "shorten" and "tweet". the secret is behind of `tweet` script. actually, Hubot::Message finish method.
http://twitter.com/<username>/status/<tweetid>
finish
if hubot-scripts.json is not exist, built-in scripts
"help", "ascii", "roles"
are loaded automatically.
choose the adapter at runtime.
adapters are sharing all `Hubot::Scripts::*` extends scripts.
$ hubot -a <adapter>
gives local shell prompt. good choice for development.
hubot: help
ascii hello
http://example.com
http://twitter.com/KBO_Scores/status/256376098764505088
hubot: <user> is a <role> hubot: who is <user> hubot: <user> is not a <role>
Hyungsuk Hong <hshong@perl.kr>
This software is copyright (c) 2012 by Hyungsuk Hong.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Hubot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hubot
CPAN shell
perl -MCPAN -e shell install Hubot
For more information on module installation, please visit the detailed CPAN module installation guide.