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
0
440
Configurable Slack bot firestarterのつかいかた
https://github.com/juntaki/firestarter
Jumpei Takiyasu
February 27, 2018
Tweet
Share
More Decks by Jumpei Takiyasu
See All by Jumpei Takiyasu
BIRのアーキテクチャと データ処理
juntaki
0
990
BIRのアーキテクチャと 技術選定
juntaki
0
700
ROSでSLAMラジコンをつくる
juntaki
0
3.3k
6足歩行ロボットをつくった
juntaki
0
630
GoでAPIサーバをはやくつくる
juntaki
26
12k
Undocumented!? firebase
juntaki
0
240
3Dプリンタと4足歩行プロトタイプ
juntaki
0
6.5k
アンケートの集計システムを作った
juntaki
0
3.3k
Goならわかる Linuxのメモリ管理
juntaki
13
6.1k
Other Decks in Technology
See All in Technology
Classmethod AI Talks(CATs) #15 司会進行スライド(2025.02.06) / classmethod-ai-talks-aka-cats_moderator-slides_vol15_2025-02-06
shinyaa31
0
170
スクラムのイテレーションを導入してチームの雰囲気がより良くなった話
eccyun
0
110
技術負債の「予兆検知」と「状況異変」のススメ / Technology Dept
i35_267
1
1k
『衛星データ利用の方々にとって近いようで触れる機会のなさそうな小話 ~ 衛星搭載ソフトウェアと衛星運用ソフトウェア (実物) を動かしながらわいわいする編 ~』 @日本衛星データコミニティ勉強会
meltingrabbit
0
120
現場で役立つAPIデザイン
nagix
29
10k
モノレポ開発のエラー、誰が見る?Datadog で実現する適切なトリアージとエスカレーション
biwashi
6
770
WAF に頼りすぎない AWS WAF 運用術 meguro sec #1
izzii
0
460
飲食店予約台帳を支えるインタラクティブ UI 設計と実装
siropaca
6
1.4k
TAMとre:Capセキュリティ編 〜拡張脅威検出デモを添えて〜
fujiihda
1
110
Larkご案内資料
customercloud
PRO
0
600
アジャイル開発とスクラム
araihara
0
160
リアルタイム分析データベースで実現する SQLベースのオブザーバビリティ
mikimatsumoto
0
950
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.4k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Practical Orchestrator
shlominoach
186
10k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Why Our Code Smells
bkeepers
PRO
335
57k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Making Projects Easy
brettharned
116
6k
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