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
90
RubyでSlackのbotを作ろう
Masayuki Mizuno
October 03, 2024
Tweet
Share
More Decks by Masayuki Mizuno
See All by Masayuki Mizuno
継続オペレータの話
fetburner
0
120
Rubyでリストモナドを使う
fetburner
0
120
次世代のプロファイラVernierを試す
fetburner
0
91
数値計算とメモリ最適化
fetburner
0
180
3/14なので円周率を計算する
fetburner
0
360
ネットワーク機器の中の OCaml
fetburner
1
670
Gotanda.rb#56
fetburner
0
93
遅延評価を使ってOSSのバグを修正した話
fetburner
1
220
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Code Review Best Practice
trishagee
64
17k
Code Reviewing Like a Champion
maltzj
520
39k
Building Your Own Lightsaber
phodgson
103
6.1k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Adopting Sorbet at Scale
ufuk
73
9.1k
How GitHub (no longer) Works
holman
310
140k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Music & Morning Musume
bryan
46
6.2k
4 Signs Your Business is Dying
shpigford
180
21k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
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 ֎෦͔Βݟ͑Δαʔό͕ແͯ͘ϝοηʔδ௨Λड͚औΕΔ