mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 09:29:58 +02:00
Update Discord webhook message format and user details for Firefox RC notifications
This commit is contained in:
parent
d42e647d50
commit
c328eaed0e
1 changed files with 3 additions and 3 deletions
|
@ -29,12 +29,12 @@ def get_pings():
|
||||||
return pings
|
return pings
|
||||||
|
|
||||||
def send_webhook(rc: str):
|
def send_webhook(rc: str):
|
||||||
text = "Sending a PR to update the current version to %s goo %s" % (rc, get_pings())
|
text = "||%s|| New Firefox RC version is available: **%s**" % (get_pings(), rc)
|
||||||
webhook_url = os.getenv('DISCORD_WEBHOOK_URL') #os.getenv('DISCORD_WEBHOOK_URL')
|
webhook_url = os.getenv('DISCORD_WEBHOOK_URL') #os.getenv('DISCORD_WEBHOOK_URL')
|
||||||
message = {
|
message = {
|
||||||
"content": text,
|
"content": text,
|
||||||
"username": "GO-WORK",
|
"username": "Firefox RC Checker",
|
||||||
"avatar_url": "https://zen-browser.app/favicon.svg",
|
"avatar_url": "https://avatars.githubusercontent.com/u/189789277?v=4",
|
||||||
}
|
}
|
||||||
response = requests.post(webhook_url, json=message)
|
response = requests.post(webhook_url, json=message)
|
||||||
if response.status_code == 204:
|
if response.status_code == 204:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue