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
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RubyでSlackのbotを作ろう
Masayuki Mizuno
October 03, 2024
Transcript
21 slides
©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 ֎෦͔Βݟ͑Δαʔό͕ແͯ͘ϝοηʔδ௨Λड͚औΕΔ
More Decks by Masayuki Mizuno
See All by Masayuki Mizuno
OCaml Meeting 2026 in Tokyo
fetburner
0
330
CircleCI ユーザーミートアップ
fetburner
0
240
関数型まつり2026
fetburner
2
1.3k
Rails アプリの docker build を 倍速にした話
fetburner
2
200
Omotesando.rb #110
fetburner
0
260
Continuation is to be continued
fetburner
1
2.7k
callccの実装を読む
fetburner
0
280
継続オペレータの話
fetburner
0
300
Rubyでリストモナドを使う
fetburner
0
230
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
660
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
520
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
630
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Color Theory Basics | Prateek | Gurzu
gurzu
1
520
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
400
Designing Powerful Visuals for Engaging Learning
tmiket
1
650
Producing Creativity
orderedlist
PRO
348
41k