KPTちゃんはKPTを管理するIRC botです。
任意の文字列をKeep / Problem / Tryのカテゴリー毎に記録、リスト表示、削除をする機能を持っています。
-
config/config.yaml
の必要項目を埋める。 -
起動
bin/kptchan
KPTちゃんは日本語がほんの少し分かります。 例えば、"遅刻が多い"というProblemを記録させたいなら、
hdemon: kpt-chan: "遅刻が多い"をProblemに追加して。
となどと話しかけましょう。 あるいはもっとくだけた感じで、
hdemon: KPT-chan: Problemに"遅刻が多い"を足してくれる?
のように話しかけてもOKです。
細かい話をすると、記録するためには、以下の条件を満たしたメッセージをKPTちゃんに送る必要があります。
- 記録したい文言を""で囲むこと。
- カテゴリー名(Keep/Problem/Try等)の文字列をメッセージに入れること。
- 「追加する」などの記録を命令する文字列をメッセージに入れること。
どんな言葉が使えるかは、ここやここを見てください。 このルールは、以下のリスト閲覧と削除においても同様です。
今までに追加したKPTのリストを見たい場合は、
hdemon: kpt-chan: Tryのリストを見せて
kpt-chan: try(1) 遅刻が多い (13-07-19 16:13 hdemon)
というように、「見せてほしい」ことを伝えて下さい。 この場合も記録と同じく、ある程度の表現のゆらぎを許容します。 なお、"try(1)"の括弧内の数字はKPT文言のidです。これは次に説明する削除の際に使います。
hdemon: KPT-chan: Tryのid:1を削除して。
kpt-chan: try id:1を消しました。
記録やリスト表示のときと同じように、「消して欲しい」ことをKPTちゃんに伝えて下さい。この場合、id:{KPTのid}
の文言を文中に入れてください。
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request