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
19
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
なぜtree-sitter-rubyの日本語シンボルはシンタックスハイライトされないのか
itojum
0
72
Ractorを試してみるぞ!+メタバースにおける地域.rbをやっているぜ
itojum
0
45
新卒一年目のコミュニティ駆動ライフ_新卒N年目のLT交流会.pdf
itojum
0
110
VRChat.rb_4_Ractorで始める並列処理.pdf
itojum
0
16
Rubyistのカテゴリを聞きに来ました_roppongirb.pdf
itojum
0
11
VRChat.rb_2_Rubyオブジェクトの世界.pdf
itojum
0
38
RubyKaigi_2026参加レポート_VRChat.rb.pdf
itojum
0
12
メタバースで地域.rbやってみた!
itojum
2
380
VRChat.rb #0 - RubyKaigi 2026 スケジュールを見る会
itojum
0
22
Featured
See All Featured
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
240
Designing for Performance
lara
611
70k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
220
Automating Front-end Workflow
addyosmani
1370
210k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
2
340
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
640
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
350
Practical Orchestrator
shlominoach
191
11k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
730
Design in an AI World
tapps
1
260
Building the Perfect Custom Keyboard
takai
2
810
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