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
VRChat.rb_3_UzumibiでRubyのDiscord_BotをCloudflare...
Search
ItoJum
May 26, 2026
25
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
VRChat.rb_3_UzumibiでRubyのDiscord_BotをCloudflareにデプロイしたい.pdf
ItoJum
May 26, 2026
More Decks by ItoJum
See All by ItoJum
サマーインターンシップのメン ターをやって得た学び5選_あつまれ!若⼿エンジニアのLT&ゆるっと交流会
itojum
0
57
SmartHRを支える従業員データ基盤とそのインフラ_Innovative Crosstalk Jamboree Geeks '26
itojum
0
360
VRChat.rbの野望.pdf
itojum
0
11
なぜtree-sitter-rubyの日本語シンボルはシンタックスハイライトされないのか
itojum
0
91
Ractorを試してみるぞ!+メタバースにおける地域.rbをやっているぜ
itojum
0
51
新卒一年目のコミュニティ駆動ライフ_新卒N年目のLT交流会.pdf
itojum
0
120
VRChat.rb_4_Ractorで始める並列処理.pdf
itojum
0
17
Rubyistのカテゴリを聞きに来ました_roppongirb.pdf
itojum
0
16
VRChat.rb_2_Rubyオブジェクトの世界.pdf
itojum
0
42
Featured
See All Featured
Speed Design
sergeychernyshev
33
2.1k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Navigating Team Friction
lara
192
16k
Why Our Code Smells
bkeepers
PRO
340
58k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Un-Boring Meetings
codingconduct
0
400
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
440
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
960
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
240
Transcript
UzumibiでRubyのDiscord Botを Cloudflareにデプロイしたい VRChat.rb #3 いとじゅん
Uzumibiとは • mruby/edgeを使った軽量な Webフレームワーク • Cloudflare Workersなどのエッ ジコンピューティング環境にも デプロイ可能 mruby/edge:
Rust実装のWasm特化mrubyVM 2 RubyKaigi 2026「Uzumibi: Reinventing mruby for the Edges」 https://rubykaigi.org/2026/presentations/udzura
作ったもの 3 Discord Botができた!ピ ンポン!
頑張ったこと DiscordBotに必要なトークンを環境変数から 読み込む機能がないかも...作るか... 4
Uzumibi::Secret.getのしくみ 5
Uzumibi::Secret.getのしくみ 1. 6 当メソッドを呼び出した ら、mruby/edgeVMが Rust関数に渡す
Uzumibi::Secret.getのしくみ 1. 2. 7 値を格納するためのメモ リ領域を確保した上で、 JSのメソッド呼び出し
Uzumibi::Secret.getのしくみ 1. 8 envオブジェクトから環 境変数を取得し返す
Uzumibi::Secret.getのしくみ 1. 9 ハンドリングして返して END
結果 10 Discord Botができた!ピ ンポン!
OSSコントリビュート 11 祝🎉おマージ🎉 リリースもされてた 🎉
おわり!! 12