Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Configurable Slack bot firestarterのつかいかた
Search
Jumpei Takiyasu
February 27, 2018
Technology
490
0
Share
Configurable Slack bot firestarterのつかいかた
https://github.com/juntaki/firestarter
Jumpei Takiyasu
February 27, 2018
More Decks by Jumpei Takiyasu
See All by Jumpei Takiyasu
BIRのアーキテクチャと データ処理
juntaki
0
1.3k
BIRのアーキテクチャと 技術選定
juntaki
0
820
ROSでSLAMラジコンをつくる
juntaki
0
3.7k
6足歩行ロボットをつくった
juntaki
0
760
GoでAPIサーバをはやくつくる
juntaki
26
13k
Undocumented!? firebase
juntaki
0
320
3Dプリンタと4足歩行プロトタイプ
juntaki
0
6.7k
アンケートの集計システムを作った
juntaki
0
3.8k
Goならわかる Linuxのメモリ管理
juntaki
13
6.2k
Other Decks in Technology
See All in Technology
Babylon.js Japan Activities (2026/4)
limes2018
0
170
TanStack Start エコシステムの現在地 / TanStack Start Ecosystem 2026
iktakahiro
1
290
Podcast配信で広がったアウトプットの輪~70人と音声発信してきた7年間~/outputconf_01
fortegp05
0
230
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
11k
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
3
2.1k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
機能・非機能の学びを一つに!Agent Skillsで月間レポート作成始めてみた / Unifying Bug & Infra Insights — Building Monthly Quality Reports with Agent Skills
bun913
5
2.9k
自分をひらくと次のチャレンジの敷居が下がる
sudoakiy
5
1.8k
Kubernetes基盤における開発者体験 とセキュリティの両⽴ / Balancing developer experience and security in a Kubernetes-based environment
chmikata
0
170
Goビルドを理解し、 CI/CDの高速化に挑む
satoshin
0
130
ログ基盤・プラグイン・ダッシュボード、全部整えた。でも最後は人だった。
makikub
1
220
OPENLOGI Company Profile
hr01
0
83k
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
How to build a perfect <img>
jonoalderson
1
5.3k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
97
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
68
38k
Documentation Writing (for coders)
carmenintech
77
5.3k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
160
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
170
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Ethics towards AI in product and experience design
skipperchong
2
250
Transcript
Configurable Slack bot firestarterのつかいかた @juntaki
Slackでいろいろ実行したいがbotつくるのは面倒 Bot やりたいことは、だいたい 単なるPOSTだけ SlackのAPI / Bot frameworkを調査 Docker化して、デプロイまわりを・・・ POST
“do something”
juntaki/firestarter POST /something firestarter Configurable slack bot with simple Web
UI https://github.com/juntaki/firestarter “do something” Regexp URL template ^do (.*)$ http://jenkins/{{index .matched 1}} ^build (.*)$ http://gitlab/{{index .matched 1}}
システム構成 firestarter(bot) Real Time Messaging Interactive messages firestarter(UI) config.json 社内
API nginx POST 社外 社内
firestarterの仕組み 1. channel名 && regexpでマッチ 2. (選択肢があれば) メニューを出して選択 3. (確認が必要なら)確認メニューを出して選択
4. 設定されたURLへPOSTする POSTのURLとBodyはtext/template、入力は下記 • regexpのマッチ結果(配列) • メニューの選択(文字列)
設定方法 発火条件 応答 POSTリクエスト
firestarterでできること
ふつうのBot “deploy app” と書いたら、appブランチのDeployをはじめる
Interactive Message ブランチ名typoするので、”deploy” で選択肢を出してほしい ※ブランチ一覧は事前にAPIで登録する
Interactive Message + 確認 選択した後に、確認でワンクッション置きたい
つかってみて https://github.com/juntaki/firestarter