rubyforgood / rubyforgood/casa

Disable embeds on bugsnag discord bot

Open
#5,390 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Good First Issue Help Wanted no-issue-activity
Dominant language
Ruby
Stars
381
Forks
542
Avg merge
3d 15h
Merged PRs (30d)
47

Description

Description

A bot watches for uncaught exceptions for the CASA app and posts details about them to the discord. If the exception can be triggered by visiting a url, the exception is triggered many times and is posted many times in a row on discord. I suspect this is because discord is visiting the URL to look for embed content.

Make a pull request on the repo for the bot to suppress embeds.

See: https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params
image

Questions? Join Slack!

We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked bugsnag-to-discord repository and find where the Discord webhook payload is built. Read Discord's Execute Webhook parameters for the embed-suppression option, then verify that bot posts no longer trigger embeds or repeated URL-based exceptions.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.