Skip to content

Example to send Discord messages using Webhooks on Render https://render.com

License

Notifications You must be signed in to change notification settings

render-examples/webhook-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example to Send a Discord Message from a Render Webhook

This example sends a message to Discord when receiving a server failed webhook.

Prerequisites

If you haven't already, sign up for a Render account. Creating webhooks on Render requires a Professional plan or higher. You can view and upgrade your plan in the Render Dashboard.

Deploy to Render

  1. Use the button below to deploy to Render
    Deploy to Render

  2. Follow instructions to create a webhook with the URL from your service and /webhook path

  3. Follow instructions to create a Render API Key

  4. Follow instructions to create a Discord App and copy the token

  5. Navigate to the installation settings for your app and

    • add bot scope
    • add SendMessages and ViewChannels permissions
  6. Set the following env vars

    • RENDER_WEBHOOK_SECRET environment variable to the secret from the webhook created in step 2
    • RENDER_API_KEY to the key created in step 3
    • DISCORD_TOKEN to the token created in step 4
    • DISCORD_CHANNEL_ID to the channel id you want messages sent to

Developing

Once you've created a project and installed dependencies with pnpm install, start a development server:

pnpm run dev

Building

pnpm run build

About

Example to send Discord messages using Webhooks on Render https://render.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published