Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
hubotを使ったチャット環境
Search
Yuji Takaesu
March 28, 2015
Technology
94
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
hubotを使ったチャット環境
Yuji Takaesu
March 28, 2015
Transcript
12 slides
開発現場でボット(Bot)を 有効活⽤用 2014/08/03 社内LT会 1PAC.INC. Yuji Takaesu
ボット(Bot)とは http://e-‐words.jp/w/ E3839CE38383E38388.html
Twitterで流流⾏行行った?! http://twinavi.jp/account/list/bot/followers
無料料でTwitter bot(ツイッターボット)を作れ るサービスまとめ -‐ NAVER まとめ http://matome.naver.jp/odai/2133695904966289401
Hubot https://hubot.github.com/
v Github社が開発した様々なチャットサービ スに組み込むことが出来るBotフレーム ワーク v Nodejsベースのオープンソース Ø ライブラリやプラグインもオープンソースで 配布されている
v オリジナルのボットスクリプトは JavascriptまたはCoffeescriptで書く Hubotとは
DEMO
v 決まった時刻に定期的に発現する v 呼びかけると反応する v テストの⾃自動実⾏行行 v デプロイの⾃自動化 v 天気や⾷食べログ検索索
v ⽇日頃⼿手作業でやっている反復復な作業を やってくれる 開発現場で活⽤用する ボット(Bot)とは
ディレクターがアプリケーションを リリースできるようになる チャットにリリースのメッセージを ⼊入⼒力力するだけ。 ここまでいくと
コード
# Description: # Murashige san. # # Commands: # hubot
murashige - Reply with Hi module.exports = (robot) -> robot.respond /村重$/i, (msg) -> if not robot.brain.data["murashige"] robot.brain.data["murashige"] = 0 robot.brain.data["murashige"]++ robot.brain.save() if robot.brain.data["murashige"] > 2 robot.brain.data["murashige"] = 0 msg.send "もうーーウザい!!" else msg.send "BAN!! BAN!! バンバン!!" robot.hear /バンバン$/i, (msg) -> msg.send "村重さーーーん” # Description: # Jenkins Tamagoのテスト実⾏行行 # # Configuration: # # Commands: # hubot tamago_all_spec # # Author # yusabana module.exports = (robot) -> robot.respond /jenkins_job (.*)/i, (msg) -> url = "" job = msg.match[1] msg.send "job: #{job}" msg.http("http:// 192.168.100.71:8080/job/#{job}/build") .get() (err, res, body) -> msg.send "Error: #{err}" msg.send "Response: #{res}" msg.send "Body: #{body}"
みんなでBotを作りましょー♪ ありがとうございました。
More Decks by Yuji Takaesu
See All by Yuji Takaesu
データ基盤統合への歩み - ハッカーズチャンプルー2025前夜祭
yusabana
2
59
サーバーレスのテストを取り巻く環境
yusabana
0
970
IT筋トレを続けるための技術
yusabana
0
290
テスト導入支援
yusabana
0
130
社内向けgyazo
yusabana
0
210
社内開発環境/テスト環境
yusabana
0
140
Other Decks in Technology
See All in Technology
マネジメントされる側の仕事は「文句」を言うこと
riyaamemiya
7
5.9k
[NW-JAWS DAY]「うちのAWS、インターネット出られないんで」― AWS外の自社サービスをPrivateLinkでシュッと公開する方法
ykimi
3
890
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
110
AIエージェントのアーキテクチャ設計
nsatoh
0
320
Re:ゼロから始めるシェアハウスのペットな鯖
silmin_
0
260
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
2
440
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
470
Linuxネットワークスタック進化の軌跡: 過去10年の歩みと最新トレンド
orimanabu
4
770
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
1
230
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
2
1.1k
IP重複は"ランディングVPC"で受け止める ― PrivateLink と Transit Gatewayによるマルチテナント接続基盤の設計
hatahata021
3
250
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
160
Featured
See All Featured
Faster Mobile Websites
deanohume
310
32k
Fireside Chat
paigeccino
43
4.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
950
Code Reviewing Like a Champion
maltzj
529
40k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
540
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.9k