Skip to content

tbpgr/ruboty-wareki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruboty::Wareki

A Ruboty Handler + Actions to 西暦年から和暦を出力する ruboty-wareki を作成しました.

Gem Version

Ruboty is Chat bot framework. Ruby + Bot = Ruboty

Installation

Add this line to your application's Gemfile:

gem 'ruboty-wareki'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruboty-wareki

Commands

Command Pattern Description
convert /wareki convert (?<year>.\d{4})\z/ get wareki from AD. ※1月1日時点の元号
convert_after /wareki convert_after (?<year>.\d{4})\z/ get wareki from AD. ※12月31日時点の元号

Usage

convert

  • get wareki from AD. ※1月1日時点の元号
>ruboty wareki convert 1868
>明治01年
>ruboty wareki convert 1913
>大正02年
>ruboty wareki convert 1977
>昭和52年
>ruboty wareki convert 1989
>昭和64年
>ruboty wareki convert 1990
>平成02年

convert_after

  • get wareki from AD. ※12月31日時点の元号
>ruboty wareki convert_after 1868
>明治01年
>ruboty wareki convert_after 1913
>大正02年
>ruboty wareki convert_after 1977
>昭和52年
>ruboty wareki convert_after 1989
>平成01年
>ruboty wareki convert_after 1990
>平成02年

ENV

Name Description
-- --

Dependency

Name Description
era_ja gem era_ja gem

Contributing

  1. Fork it ( https://github.com/tbpgr/ruboty-wareki/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 a new Pull Request

About

A Ruboty Handler + Actions to 西暦年から和暦を出力する ruboty-wareki を作成しました.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages