Skip to content

WonderlandEngine/discord-activity-example

Repository files navigation

Wonderland Engine - Discord Activity Example

Build & Test Discord

Example of a Discord Activity built with the fastest 3D engine for the web.

demo-gif

Setup

Retrieve a "Discord Client ID" and "Discord Client Secret" via the Discord Developer Portal, by creating a new app.

  1. Copy the example.env as .env
  2. Replace the DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET in the .env file with your app's.
  3. npm i to install package dependencies

Run

  1. Run via cd server && npm run dev and cd server && npm run tunnel
  2. Update URL mapping of your Discord app to map / to the URL provided by the cloudflare tunnel.
  3. Open DiscordActivityExample.wlp in Wonderland Editor.
  4. Enable developer mode on your Discord client.

The npm server run via npm run dev will reverse proxy Wonderland Editor's webserver and websockets through the cloudflare tunnel.

About

Example of a Discord Activity built with Wonderland Engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published