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
510
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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.5k
BIRのアーキテクチャと 技術選定
juntaki
0
870
ROSでSLAMラジコンをつくる
juntaki
0
3.8k
6足歩行ロボットをつくった
juntaki
0
790
GoでAPIサーバをはやくつくる
juntaki
26
13k
Undocumented!? firebase
juntaki
0
330
3Dプリンタと4足歩行プロトタイプ
juntaki
0
6.8k
アンケートの集計システムを作った
juntaki
0
3.9k
Goならわかる Linuxのメモリ管理
juntaki
13
6.3k
Other Decks in Technology
See All in Technology
Claude Code 珍プレー好プレー
shinyasaita
0
330
10年目を迎えた「ABEMA」がどのように AI 活用を推進して、AI 駆動開発にシフトしているのか / How ABEMA, entering its 10th year, is promoting the use of AI and shifting toward AI-driven development
miyukki
0
140
LLMやAIエージェントをソフトウェアに組み込むプラクティス
shibuiwilliam
1
360
シンガポールで登壇してきます
yama3133
0
120
地域 SRE コミュニティ最前線 / SRE NEXT 2026 Discussion Night Track C
muziyoshiz
0
220
kintone の AI コワーカーを、 Anthropic にエージェントを"ホストさせて"作った話 #devkinmeetup
sugimomoto
0
100
DMM.com 購入改善推進チーム におけるCodeRabbitを用いた レビューフロー改善の一例
ysknsid25
2
620
Mastraエージェント、どのクラウドにデプロイする?
minorun365
PRO
2
180
なぜ私たちのSREプラクティスはなかなか機能しないのか 〜システムより先に組織を見る〜 / Why our SRE practices aren't really working
vtryo
3
3.7k
Kaggleで成長するために意識したこと
prgckwb
2
330
Empower GenAI with Agile - あなたのアジャイルが生成AIのバフになる仕組み
hageyahhoo
1
180
SRE Next 2026 何でも屋からの脱却
bto
0
680
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
55
8.2k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
200
A designer walks into a library…
pauljervisheath
211
24k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Paper Plane
katiecoart
PRO
2
52k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
650
The Spectacular Lies of Maps
axbom
PRO
1
850
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
420
Tell your own story through comics
letsgokoyo
1
990
Being A Developer After 40
akosma
91
590k
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