Notifications¶
Notification helpers for informing operators about challenge results.
send_discord_webhook(challenge, team, address, *, reward_usd=None, reward_token=None, attempts=None, network=None, timestamp=None)
async
¶
Post a Discord notification whenever a challenge is completed.
The helper renders a celebratory embed that mirrors the structured
logging format and sends it to the webhook defined via the
DISCORD_WEBHOOK_URL environment variable. Missing configuration keeps
local development quiet.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
challenge
|
str
|
Challenge slug, e.g. |
required |
team
|
str
|
Team name or |
required |
address
|
str
|
On-chain address that submitted the winning transaction. |
required |