Skip to content

Commit

Permalink
Few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanin committed Dec 30, 2024
1 parent e5c660a commit 5d76a43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion config/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ SENTRY_DSN=""
# API keys
NAILA_KEY=""
WEEB=""
BOOBBOT=""
BOOBBOT=""

# Webhooks
ERROR_WEBHOOK=""
2 changes: 1 addition & 1 deletion modules/events/errors/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def on_app_command_error(self, interaction: discord.Interaction, error: ap
scope.set_tag("channel", interaction.channel.id)
scope.set_tag("command", interaction.command.name)
scope.set_tag("user", interaction.user.id)
capture_exception(error, scope)
sentry_sdk.capture_exception(error)

webhook = discord.Webhook.from_url(os.getenv("ERROR_WEBHOOK"), session=self.bot.session)

Expand Down

0 comments on commit 5d76a43

Please sign in to comment.