結衣「じゃあ私の家に来てくれるかな、実は…(Slackへ通知しに行って欲しいんだけど…)」
ちなつ「今すぐ行きます、飛んでいきます、光になります、チナッツ光です〜!!!!♡」
Chinachuの"recordedCommand"機能を利用して、録画終了時にその旨をSlackへpostします。
ついでにstorageLowSpaceCommand
も雑に実装した。
アイコンはChinachuのTwitter公式アカウント @Chinachu_REC のアイコンを使っています。
Ver 2.2.1
- Slackにアクセス
- "Configure Integrations"
- "Incoming WebHooks"
- "Post to Channel"でpost先channelを指定
- "Add Incoming WebHooks Integration"
- "Webhook URL"を控えておく
- (入っていない場合は)Node.js, requestライブラリ, jqをインストール
- Chinachuのディレクトリのトップに移動
- このリポジトリをcloneする
- 各
.sh
ファイルをChinachuが実行可能となるようにする yarn
(ornpm i
if you like)cp config-sample.yaml config.yaml
config.yaml
の各値を適宜上書き (chinachu_host
の値は末尾/
なし)- Chinachuの
config.json
に以下を追加
"recordedCommand": "./ChinattsuHikari/recordedCommand.sh",
"storageLowSpaceCommand": "./ChinattsuHikari/storageLowSpaceCommand.sh"
- Twitter: @hideo54
- Email: [email protected]