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
340
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
720
BIRのアーキテクチャと 技術選定
juntaki
0
530
ROSでSLAMラジコンをつくる
juntaki
0
2.9k
6足歩行ロボットをつくった
juntaki
0
460
GoでAPIサーバをはやくつくる
juntaki
26
11k
Undocumented!? firebase
juntaki
0
130
3Dプリンタと4足歩行プロトタイプ
juntaki
0
6.3k
アンケートの集計システムを作った
juntaki
0
2.8k
Goならわかる Linuxのメモリ管理
juntaki
13
5.9k
Other Decks in Technology
See All in Technology
アプリがつくるNOT A HOTELブランド
hokuts
1
450
AWS を使う上で知っておきたいオンプレミス知識/aws-on-premise-essentials
emiki
1
4.2k
TransitGatewayの基礎
toru_kubota
0
230
ここが嬉しいABAC ここが辛いよABAC #再解説+補足編
masahirokawahara
0
220
DevOpsDays History and my DevOps story
kawaguti
PRO
8
1.6k
最近たまに見かけるTiDBってなんだ? - Findy
pingcap0315
2
600
複雑な構成要素を持つUIとの向き合い方 〜新・支出グラフでの実例〜 / B43 TECH TALK
nakamuuu
0
100
Garoon 開発チーム / Garoon development team
cybozuinsideout
PRO
2
2.9k
KubeCon EU 2024 Recap “Kubernetes Policy Time Machine: Where to Next?”
ryysud
0
120
小さな開発会社がWebサービスを作る理由
polidog
PRO
1
160
社内勉強会運営のコツ
senoo
6
1.1k
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
340
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
688
190k
Faster Mobile Websites
deanohume
297
30k
Making Projects Easy
brettharned
108
5.5k
The Illustrated Children's Guide to Kubernetes
chrisshort
29
46k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.1k
Learning to Love Humans: Emotional Interface Design
aarron
266
39k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
20
1.6k
Code Review Best Practice
trishagee
54
15k
Designing the Hi-DPI Web
ddemaree
276
33k
Building Your Own Lightsaber
phodgson
98
5.7k
The Pragmatic Product Professional
lauravandoore
24
5.8k
Web Components: a chance to create the future
zenorocha
305
41k
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