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
8
0
Share
VRChat.rb_3_UzumibiでRubyのDiscord_BotをCloudflareにデプロイしたい.pdf
ItoJum
May 26, 2026
More Decks by ItoJum
See All by ItoJum
VRChat.rb_2_Rubyオブジェクトの世界.pdf
itojum
0
11
RubyKaigi_2026参加レポート_VRChat.rb.pdf
itojum
0
9
メタバースで地域.rbやってみた!
itojum
2
350
VRChat.rb #0 - RubyKaigi 2026 スケジュールを見る会
itojum
0
20
フレッシュITあわ〜ど 最終審査会スライド_いとじゅん
itojum
0
23
デプロイ講座_福プロ.pdf
itojum
0
29
connpass AIボットを作りたかった話
itojum
0
56
Orvalでconnpass MCPサーバーを自動生成してみた
itojum
0
22
Orvalでconnpass MCPサーバーを自動生成してみた
itojum
0
90
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Ruling the World: When Life Gets Gamed
codingconduct
0
230
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
44k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
210
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
330
Accessibility Awareness
sabderemane
1
120
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
700
Speed Design
sergeychernyshev
33
1.7k
Raft: Consensus for Rubyists
vanstee
141
7.4k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
200
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