Skip to content
Okkey edited this page Jun 15, 2019 · 7 revisions

Welcome to the Gokabot wiki!

How to update

Gokabot is OSS, so you can join in our development.

You can make new function of BOT.
However, you must follow the additional procedure and coding rules below.

How to add new function

Flow

  1. Fork this repository.
  2. Coding (See next section).
  3. Send Pull Request.
  4. If your request is admitted, we merge it.

Coding

  1. Create new file /app/src/hoge.rb.
  2. Implement class Fuga in hoge.rb.
  3. Implement instance method answer(*msg_data) in class Fuga.
  4. Add require_relative './src/hoge.rb' to /app/src.rb.
  5. Add Fuga.new to $OBJS in src.rb.

⚠️ If you want to use DB, please contact me.

Coding rules

We define our coding rules in .rubocop.yml.
So, please install RuboCop, and check your code by it.

Clone this wiki locally