项目作者: IanMitchell

项目描述 :
Forward Sentry notifications to your Discord server
高级语言: JavaScript
项目地址: git://github.com/IanMitchell/sentrydiscord.dev.git
创建时间: 2021-03-15T17:09:55Z
项目社区:https://github.com/IanMitchell/sentrydiscord.dev

开源协议:MIT License

下载


Sentry → Discord


Event Count
Webhook Count


Note: There was an incident on February 28 which unfortunately resulted in the loss of the production database. The previous data is not recoverable. I sincerely apologize. You will need to revisit the website and setup your webhooks again.


Sentry → Discord is a service for forwarding Sentry event notifications to Discord. It acts as a middleman and transforms the webhook payload into a Discord-compatible format.

You can run your own version of Sentry → Discord or use the free, hosted version at https://sentrydiscord.dev.

Local Development

To get started in a local environment, you’ll need a PostgreSQL instance running locally. Clone the repository and run

  1. npm install
  2. npx prisma migrate dev --preview-feature
  3. npx prisma generate

Next, create a .env file with

  1. DATABASE_URL=postgresql://...

Replacing the postgresql string with the URL to your local database. Finally, run

  1. npm run dev

You should be able to view the website at http://localhost:3000.

Capturing Webhook Events

If you want to see what the Webhook payload looks like from Sentry, clone and run this website locally, and use a service like ngrok to get a public URL you can use to point Sentry to it. In development mode the console will print out the full Sentry payload.