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
RubyでSlackのbotを作ろう
Search
Masayuki Mizuno
October 03, 2024
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RubyでSlackのbotを作ろう
Masayuki Mizuno
October 03, 2024
More Decks by Masayuki Mizuno
See All by Masayuki Mizuno
OCaml Meeting 2026 in Tokyo
fetburner
0
310
CircleCI ユーザーミートアップ
fetburner
0
210
関数型まつり2026
fetburner
2
1k
Rails アプリの docker build を 倍速にした話
fetburner
2
190
Omotesando.rb #110
fetburner
0
240
Continuation is to be continued
fetburner
1
2.5k
callccの実装を読む
fetburner
0
250
継続オペレータの話
fetburner
0
290
Rubyでリストモナドを使う
fetburner
0
220
Featured
See All Featured
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
710
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
550
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
440
Typedesign – Prime Four
hannesfritz
42
3.2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
700
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
How STYLIGHT went responsive
nonsquared
100
6.3k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Chasing Engaging Ingredients in Design
codingconduct
0
320
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
330
Transcript
©2024 Wantedly, Inc. RubyͰSlackͷbotΛ࡞Ζ͏ Omotesando.rb#102 Oct 3, 2024 - Masayuki
Mizuno
©2024 Wantedly, Inc. ࣗݾհ
©2024 Wantedly, Inc. ਫխ೭ ࣗݾհ ॴଐ: ΥϯςουϦʔגࣜձࣾ ৬ۀ: όοΫΤϯυΤϯδχΞ ͖ͳݴޠ:
OCaml, Coq, NEC IXͷίϯϑΟά Twitter: @fetburner GitHub: https://github.com/fetburner
©2024 Wantedly, Inc. ࠓ͢͜ͱ
©2024 Wantedly, Inc. ࠓ͢͜ͱ Ϟνϕʔγϣϯ 3VCZʹΑΔ4MBDLCPU࣮ํ๏ͷհ w 4MBDLΞϓϦ࡞๏
w Ұํతʹ௨Λߦ͏CPUͷ࡞ w Ϣʔβʔ͔ΒͷϝοηʔδΛड͚͚ΔCPUͷ࡞
©2024 Wantedly, Inc. Ϟνϕʔγϣϯ
©2024 Wantedly, Inc. ֤छ௨Λ4MBDL্Ͱड͚औΕΔͱخ͍͠ 4MBDLͰۀͷίϛϡχέʔγϣϯΛऔ͍ͬͯΔͷͰɺಉ༷ͷՕॴͰ௨ड͚औΓ͍ͨ Ϟνϕʔγϣϯ
©2024 Wantedly, Inc. 3VCZʹΑΔ4MBDLCPUͷ࡞
©2024 Wantedly, Inc. 4MBDL্ͰCPUʹରԠ͢ΔΞϓϦͷ࡞͕ඞཁ IUUQTBQJTMBDLDPNBQQTͷ$SFBUF/FX"QQ͔Β࡞Ͱ͖Δ 4MBDLΞϓϦͷ࡞
©2024 Wantedly, Inc. ΞϓϦͷઃఆͰඞཁͳݖݶΛ༩͢Δඞཁ͕͋Δ ݖݶͷৄࡉʹ͍ͭͯIUUQTBQJTMBDLDPNTDPQFTΛࢀর ݖݶઃఆ
©2024 Wantedly, Inc. ϝοηʔδૹ৴ʹΞΫηετʔΫϯ͕ඞཁ ݸਓత༻్ͳΒΞϓϦͷઃఆը໘͔Βੜ͢Δͷ͕؆ศ ΞΫηετʔΫϯͷऔಘ
©2024 Wantedly, Inc. 0"VUIͰΞΫηετʔΫϯΛऔಘͰ͖Δ ୈࡾऀʹCPUΛ͢Δ߹0"VUI࿈ܞΛ͏ͱྑ͍ ΞΫηετʔΫϯͷऔಘ
©2024 Wantedly, Inc. Ұํతʹ௨Λߦ͏CPUͷ࡞
©2024 Wantedly, Inc. ΞΫηετʔΫϯΛ༻͍ͯదٓ"1*Λୟ͚ྑ͍ TMBDLBQJDMJFOUHFNͷόΠϯσΠϯάΛ༻͍Δͱָ Ұํతʹ௨Λߦ͏CPUͷ࡞
©2024 Wantedly, Inc. ௨Λૹ৴͢Δ͚ͩͳΒαʔόʔෆཁ CPU͔Β4MBDL"1*ͷ௨৴͔͠ൃੜ͠ͳ͍ͷͰɺ֎෦͔ΒCPUʹૄ௨Ͱ͖Δඞཁͳ͍ Ұํతʹ௨Λߦ͏CPUͷߏ chat_postMessage Bot Slackଆαʔό
©2024 Wantedly, Inc. Ϣʔβʔ͔ΒϝοηʔδΛड͚͚ΔCPUͷ࡞
©2024 Wantedly, Inc. 4MBDL&WFOUT"1* ϝοηʔδड͚औΓ࣌ʹ4MBDL͕"1*Λୟ͍ͯ͘ΕΔ 8BOUFEMZͷ4MBDLΞϓϦ͕͍ͬͯΔͷ͜Ε Πϯλʔωοτଆ͔ΒCPUͷૄ௨͕ඞཁͳͷͰɺϩʔΧϧڥͰͷ࣮ݧݫ͍͠ ϝοηʔδͷड͚औΓ HTTP POST
Bot Slackଆαʔό
©2024 Wantedly, Inc. 4PDLFU.PEF 8FC4PDLFUͷίωΫγϣϯΛ௨ͯ͡௨Λૹ৴ͯ͘͠ΕΔ #PUଆ͔Β։࢝ͨ͠ίωΫγϣϯΛҡ࣋͢ΔͷͰɺϩʔΧϧڥͰ࣮ݧՄ ϝοηʔδͷड͚औΓ WebSocket Bot Slackଆαʔό
©2024 Wantedly, Inc. TMBDLSVCZDMJFOUHFNͰͷ࣮ 4PDLFU.PEFͰͷϝοηʔδड͚औΓͷ࣮
©2024 Wantedly, Inc. ·ͱΊ
©2024 Wantedly, Inc. ·ͱΊ 3VCZʹΑΔ4MBDLCPU࣮ํ๏Λհ ެࣜ4%,͕ແͯ͘4MBDLCPU؆୯ʹ࣮Ͱ͖Δ ϝοηʔδૹ৴͚ͩͳΒαʔόʔෆཁ w
"1*Λୟ͚ͩ͘ ϩʔΧϧڥͰͷಈ࡞ʹιέοτϞʔυ͕͓קΊ w ֎෦͔Βݟ͑Δαʔό͕ແͯ͘ϝοηʔδ௨Λड͚औΕΔ