### Installing Project Dependencies with npm Source: https://github.com/radityaharya/ryo/blob/main/README.md This command uses npm (Node Package Manager) to install all necessary project dependencies listed in the package.json file. This must be done before building or deploying the project. ```Bash npm install ``` -------------------------------- ### Cloning Ryo Repository and Changing Directory Source: https://github.com/radityaharya/ryo/blob/main/README.md These commands clone the Ryo project repository from GitHub and then navigate into the newly created project directory, which is the first step in setting up the project locally. ```Bash git clone https://github.com/radityaharya/ryo.git cd ryo ``` -------------------------------- ### Registering Discord Slash Commands with npm Source: https://github.com/radityaharya/ryo/blob/main/README.md This command executes an npm script defined in package.json to register the bot's slash commands with the Discord API. This step is necessary after deployment or command updates for commands to appear in Discord. ```Bash npm run register ``` -------------------------------- ### Deploying Ryo Worker with Wrangler Source: https://github.com/radityaharya/ryo/blob/main/README.md This command uses the Wrangler CLI to build and deploy the Ryo Cloudflare Worker to your Cloudflare account. It pushes the code and configuration to the Cloudflare edge network. ```Bash wrangler deploy ``` -------------------------------- ### Setting Production Secrets with Wrangler Source: https://github.com/radityaharya/ryo/blob/main/README.md These commands set various required credentials (Discord token, public key, application ID, webhook URL, and bot secret) as secrets in the Cloudflare Workers environment using the Wrangler CLI for production use. ```Bash wrangler secret put DISCORD_TOKEN wrangler secret put DISCORD_PUBLIC_KEY wrangler secret put DISCORD_APPLICATION_ID wrangler secret put DISCORD_WEBHOOK_URL wrangler secret put BOT_SECRET ``` -------------------------------- ### Setting Discord Webhook URL Secret with Wrangler Source: https://github.com/radityaharya/ryo/blob/main/README.md This command uses the Wrangler CLI to securely store the Discord Webhook URL as a secret. This secret is used by the worker to forward emails to a specific Discord channel. ```Bash wrangler secret put DISCORD_WEBHOOK_URL ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.