# チャットツール

## Rocket.Chat

### 簡単構築

docker-composeの方が簡単

<https://github.com/RocketChat/Rocket.Chat/wiki/Deploy-with-Docker>

### 絵文字一覧

<http://www.emoji-cheat-sheet.com/>

### hubot-rocketchatがGENERAL以外で使えない

room idがハッシュになっているバグがある。inspect elementでroom-idを取得すればよい

<https://github.com/RocketChat/hubot-rocketchat>

## bot

### ボットにやらせた方がいいこと

Implement on new branch

Run build

Communicate Build status

Respond to build issues

Create pull request

Communicate ready for feedback

Review

Communicate review

Respond to review

Sign off

Integrate master

Branch deploy

Test in production

Fix issues

Integrate master

Re-deploy branch

Merge branch

Deploy master

### 事例

MTG資料の自動生成

特定のSlackへの投稿にリアクション（発言の活性化）

デプロイ占い

お菓子ルーレット

スケジュールの登録やリマインド

GitHubへのIssue登録

デプロイやマージリクエスト

画像検索

掃除当番の割当や通知

雑務の簡略化（掃除当番表管理、飲料水の管理、会議室の利用状況確認）

勤怠管理（勤怠状況確認、勤怠登録、確認）

語録登録

日々発生する「感謝の気持ち」をストックして可視化できる

困っていて助けてほしいときに「ボスケテ」と発言すると助けてくれる（誰かが）

「つらぽよ」と発言すると励ましてくれる

<https://employment.en-japan.com/engineerhub/entry/2017/06/30/110000>

## hubot

### 自作スクリプトを実行する

scriptsの下にcoffeeスクリプトを置く。

hubot再起動で公開される。

### hubotのproxy環境下での使用

普通に使う分には問題ないが、hubot misawaとかが動かない。

なんかJSを自作する必要あるっぽい

<https://github.com/github/hubot/issues/287>

### Tips

#### webhookを使う

デフォルトで8080で公開されている。

scripts以下にこれを置いてブラウザで叩いてOKが出ることで確認できる。

```
module.exports = (robot) ->
robot.router.get '/', (req, res) ->
res.send "OK!"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yutakatay.gitbook.io/katapedia/doc/chattotsru.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
