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
RubyでSlackのbotを作ろう
Search
Masayuki Mizuno
October 03, 2024
0
100
RubyでSlackのbotを作ろう
Masayuki Mizuno
October 03, 2024
Tweet
Share
More Decks by Masayuki Mizuno
See All by Masayuki Mizuno
継続オペレータの話
fetburner
0
150
Rubyでリストモナドを使う
fetburner
0
130
次世代のプロファイラVernierを試す
fetburner
0
96
数値計算とメモリ最適化
fetburner
0
200
3/14なので円周率を計算する
fetburner
0
370
ネットワーク機器の中の OCaml
fetburner
1
680
Gotanda.rb#56
fetburner
0
99
遅延評価を使ってOSSのバグを修正した話
fetburner
1
220
Featured
See All Featured
A better future with KSS
kneath
238
17k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
180
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
Making Projects Easy
brettharned
116
6k
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 ֎෦͔Βݟ͑Δαʔό͕ແͯ͘ϝοηʔδ௨Λड͚औΕΔ