Ruboty::ExecCommand
Ruboty Exec Command adds the name of external command path as a handler. You can run your own command from ruboty.
Put the command into commands/ directory where your bot lives in. The command's path name is used as is handler. When you say '@bot: example hello', ruboty runs the command $PWD/commands/example/hello or $RUBOTY_ROOT/commands/example/hello if RUBOTY_ROOT is defined.
For your convinience, please implement -h option into the command. The usage will be used for help message of ruboty.
Installation
Add this line to your application's Gemfile:
gem 'ruboty-exec_command'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruboty-exec_command
Contributing
- Fork it ( https://github.com/[my-github-username]/ruboty-exec_command/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request