LoginSignup
6
5

More than 5 years have passed since last update.

Ruboty | Ruby 製のチャットボットフレームワーク「Ruboty」 インストールから疎通確認まで #ruboty #chatops

Posted at

Ruboty | Ruby 製のチャットボットフレームワーク「Ruboty」 インストールから疎通確認まで #ruboty #chatops

概要

Ruboty は Ruby 製のチャットボットフレームワークです。
要は Hubot の Ruby 版。

Hubot は便利だけど CoffeeScript より Ruby で書きたい、という人向け。

インストール

$ gem install ruboty
$ ruboty -h
Usage: ruboty [options]
        --dotenv        Load .env before running.
    -g, --generate      Generate a new chatterbot with ./ruboty/ directory if specified.
    -l, --load          Load a ruby file before running.
    -h, --help          Display this help message.

試行

Ruboty は Hubot 同様、デフォルトでは Shell Adapter を利用して動作します。
デフォルトで, help / ping / whoami の3つの Handler が組み込まれています。

$ ruboty
> ruboty help
ruboty /help( me)?\z/i - Show this help message
ruboty /ping\z/i       - Return PONG to PING
ruboty /who am i\?/i   - Answer who you are
> ruboty ping
pong
> exit

exit or quit で Shell Adapter のプロンプトを終了する

参照

Ruboty GitHub
Ruboty RubyGems

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5