-
-
27 Aug 2015 06:24:23 UTC
- Distribution: Hubot
- Module version: 0.2.8
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (439 / 165 / 0)
- Kwalitee
Bus factor: 0- License: perl_5
- Activity
24 month- Tools
- Download (27.65KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- AnyEvent
- AnyEvent::Campfire::Client
- AnyEvent::HTTP
- AnyEvent::HTTP::ScopedClient
- AnyEvent::HTTPD
- AnyEvent::IRC::Client
- Cwd
- Encode
- File::Copy
- File::Copy::Recursive
- File::Path
- File::ShareDir
- File::Spec::Functions
- HTTP::Request
- JSON
- JSON::XS
- LWP::UserAgent
- Moose
- Pod::Usage
- Time::HiRes
- Try::Tiny
- URI
- URI::Escape
- URI::QueryParam
- namespace::autoclean
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Hubot - AnyEvent based https://github.com/github/hubot
VERSION
version 0.2.8
SYNOPSIS
$ echo '["help"]' > hubot-scripts.json $ hubot hubot> hubot help hubot> exit
DESCRIPTION
CONFIGURATION
describe scripts name to hubot-scripts.json
example)
[ "help", "shorten", "ascii" ]
each scripts has each congiruation rules.
check it out
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::Messagefinish
method.if hubot-scripts.json is not exist, built-in scripts
"help", "ascii", "roles"
are loaded automatically.
ADAPTERS
choose the adapter at runtime.
adapters are sharing all `Hubot::Scripts::*` extends scripts.
$ hubot -a <adapter>
BUNDLE ADAPTERS
- Hubot::Adapter::Shell
-
gives local shell prompt. good choice for development.
- Hubot::Adapter::Irc
- Hubot::Adapter::Campfire
BUNDLE SCRIPTS
- Hubot::Scripts::help
-
hubot: help
- Hubot::Scripts::ascii
-
ascii hello
- Hubot::Scripts::shorten
-
http://example.com
- Hubot::Scripts::tweet
-
http://twitter.com/KBO_Scores/status/256376098764505088
- Hubot::Scripts::roles
-
hubot: <user> is a <role> hubot: who is <user> hubot: <user> is not a <role>
SEE ALSO
- https://github.com/github/hubot
- https://github.com/github/hubot-scripts
- Hubot::Robot
- Hubot::Adapter
- Hubot::Brain
- Hubot::Listener
- Hubot::Message
- Hubot::Response
- Hubot::User
AUTHOR
Hyungsuk Hong <hshong@perl.kr>
COPYRIGHT AND LICENSE
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.
Module Install Instructions
To install Hubot, copy and paste the appropriate command in to your terminal.
cpanm Hubot
perl -MCPAN -e shell install Hubot
For more information on module installation, please visit the detailed CPAN module installation guide.