0.01
No commit activity in last 3 years
No release in over 3 years
ChatWork adapter for Ruboty.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

>= 0
 Project Readme

Ruboty::Chatwork

Chatwork adapter for Ruboty.

Usage

Get your ChatWork API Token

# Gemfile
gem 'ruboty-chatwork'

ENV

CHATWORK_API_TOKEN             - ChatWork API Token
CHATWORK_ROOM                  - ChatWork Room ID
CHATWORK_API_RATE              - ChatWork API Rate(Requests per Hour)
CHATWORK_ROOM_FOR_SAYING       - ChatWork Room ID for Saying(Optional)

HOW TO SET THE ROOM TO SAY MESSAGE

  • Priority is high in numerical order (lower is ignored)
    1. room_id:12345678 statement at last in message by saying
      • ex. ruboty Good Morning! room_id:12345678
    2. room_id key in reply method
      • ex. message.reply("Hello!", room_id:12345678)
    3. ENV["CHATWORK_ROOM_FOR_SAYING"]
    4. ENV["CHATWORK_ROOM"]
  • Note
    • regexp of extracting room_id is poor ;)

Contributing

  1. Fork it ( http://github.com/mhag/ruboty-chatwork/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request