项目作者: nikukyugamer

项目描述 :
ChatWork Ops by Ruboty
高级语言: Ruby
项目地址: git://github.com/nikukyugamer/chatwork-ops-by-ruboty.git
创建时间: 2018-01-15T07:14:16Z
项目社区:https://github.com/nikukyugamer/chatwork-ops-by-ruboty

开源协议:MIT License

下载


Overviews

Installation

  • I recommend use Gemfile, bundle install --path vendor/bundle and bundle exec ruboty

Use gem install command

  1. $ gem install ruboty
  2. $ gem install ruboty-chatwork
  3. $ gem install dotenv

Optional Installation as you like

  1. $ gem install ruboty-google_image
  2. $ gem install foreman
  3. $ gem install mechanize
  4. $ etc...

Prepare

  • you must edit .env file
    • refer sample.env
  • you must edit the name and the account id of chat members in config/users_info.yml

Execution

  1. $ ruboty --load load_chatwork_ruboty.rb --dotenv

Note

if load_chatwork_ruboty.rb renames to ruboty.rb, collision occurs

Customize

  • You can create your own bots!
    • add your handler files in handlers/*.rb
    • handler files are auto loaded when exec Ruboty
  • You can include your Ruby logic!
    • add your codes in lib/

Limitation

  • per one execution, you can operate a bot in ONE room
    • if you wanna operate multi bots, exec multi Ruboty
      • CAUTION: be careful of rate limits…
  • about above, I send Pull Request!

LICENSE

MIT LICENSE