Skip to content

Commit

Permalink
Adds additional bot check.
Browse files Browse the repository at this point in the history
  • Loading branch information
metroid-samus committed Jun 26, 2024
1 parent 6acfa98 commit 73cca62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/plugins/dispatch_slack/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def user_middleware(
payload: dict,
) -> None:
"""Attempts to determine the user making the request."""
if is_bot(request):
if is_bot(request) or client.users_info(user=user_id)["user"]["is_bot"]:
return context.ack()

user_id = None
Expand Down

0 comments on commit 73cca62

Please sign in to comment.