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
89
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
50
サーバーレスのテストを取り巻く環境
yusabana
0
960
IT筋トレを続けるための技術
yusabana
0
290
テスト導入支援
yusabana
0
120
社内向けgyazo
yusabana
0
200
社内開発環境/テスト環境
yusabana
0
130
Other Decks in Technology
See All in Technology
1人アドミンな私はAWSアカウント申請をSlackで完結したい!
ysuzuki
0
100
VS Code × GitHub Copilot での Fabric 開発
ryomaru0825
1
200
KanaAI
shreyas1009
0
130
猫でもわかるKiro Web
kentapapa
1
160
AI Native Platform Engineering 〜PlatformとAgileで“作る速さ”を“価値”へ〜
uya116
0
520
大阪オフィスに Unitree Go2 がやってきたので Physical AI やってみた
dafujii
0
160
ログラスのマルチプロダクトを 支える認証基盤 〜テナントごとに異なる統制とどう向き合うか〜
dada4386
3
250
Databricksメトリクスビューはじめてのもくもく会
taka_aki
0
140
Apache Iceberg が拓く AI 時代のオープンレイクハウス
tomtanaka
0
200
人にやさしく、AIにやさしく、書き手を選ばないIaCのガードレール再考 / Rethinking IaC Guardrails for Humans and AI Alike
kohbis
5
1.8k
雪かき部 #7 もう怖くない!SELECT文!
foursue
0
230
Snowflake Horizon Catalog と Apache Iceberg で作る オープンなデータ基盤
kitagawaz
0
350
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
58k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
590
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Skip the Path - Find Your Career Trail
mkilby
1
240
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
450
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
470
Joys of Absence: A Defence of Solitary Play
codingconduct
1
530
WCS-LA-2024
lcolladotor
0
840
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
330
Building Applications with DynamoDB
mza
96
7.2k
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を作りましょー♪ ありがとうございました。