Skip to content

Commit

Permalink
Use the issues webhook instead
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Apr 3, 2024
1 parent fe2c789 commit d59fdcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions games/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ def notify_installer(installer):


def send_simple_message(text):
if not settings.DISCORD_INSTALLER_WEBHOOK_TOKEN:
if not settings.DISCORD_ISSUE_WEBHOOK_TOKEN:
return
hook_url = (
"https://discordapp.com/api/webhooks/"
f"{settings.DISCORD_INSTALLER_WEBHOOK_ID}/{settings.DISCORD_INSTALLER_WEBHOOK_TOKEN}"
f"https://discordapp.com/api/webhooks/"
f"{settings.DISCORD_ISSUE_WEBHOOK_ID}/{settings.DISCORD_ISSUE_WEBHOOK_TOKEN}"
)
return send_webhook_payload(hook_url, {"content": text})

0 comments on commit d59fdcd

Please sign in to comment.