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
hubotを使ったチャット環境
Search
Yuji Takaesu
March 28, 2015
Technology
81
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
hubotを使ったチャット環境
Yuji Takaesu
March 28, 2015
More Decks by Yuji Takaesu
See All by Yuji Takaesu
データ基盤統合への歩み - ハッカーズチャンプルー2025前夜祭
yusabana
2
38
サーバーレスのテストを取り巻く環境
yusabana
0
940
IT筋トレを続けるための技術
yusabana
0
280
テスト導入支援
yusabana
0
110
社内向けgyazo
yusabana
0
190
社内開発環境/テスト環境
yusabana
0
130
Other Decks in Technology
See All in Technology
徹底討論!ECS vs EKS!
daitak
0
330
FPC(フレキシブル)基板にZephyr実装してみた。
iotengineer22
0
120
ザ・データベース、MySQL ~ OSC 2026 Sendai ~
sakaik
0
140
【Cyber-sec+】経営層を"動かす"ための考え方
hssh2_bin
0
200
「勝手に広まる」人気 AI エージェントを爆速で作ろう!(AWS Summit Japan 2026講演資料)
minorun365
PRO
9
2k
2026 TECHFRESH 畢業分享會 - AI-Native 重塑軟體工程與虛擬講師
line_developers_tw
PRO
0
1.3k
ACE-Step-1.5で見る 音楽生成AIのしくみと“破綻だけ直す”Retake機能の開発【zennfes spring 2026 登壇資料】
personabb
1
540
失敗を資産に変えるClaude Code
shinyasaita
0
720
日本 Fintech 未来予測レポート 2027〜2028年(手動編集版)
8maki
1
2.5k
攻撃者視点で考えるDetection Engineering
cryptopeg
3
2k
IaC コードを資産へ:AWS CDK 社内ライブラリと横断展開 / aws-summit-japan-2026
gotok365
5
1.1k
LayerX コーポレートエンジニアリング室におけるサプライチェーンセキュリティへの取り組み / Supply Chain Security at LayerX Corporate Engineering
yuyatakeyama
2
680
Featured
See All Featured
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
420
Designing Powerful Visuals for Engaging Learning
tmiket
1
420
Paper Plane (Part 1)
katiecoart
PRO
0
9.1k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
300
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
430
Six Lessons from altMBA
skipperchong
29
4.3k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
230
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
400
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
Transcript
開発現場でボット(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を作りましょー♪ ありがとうございました。