forked from ZenBrowserMirrors/zen-desktop
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
|
||||
|
||||
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')
|
||||
message = {
|
||||
"content": text,
|
||||
"username": "GO-WORK",
|
||||
"avatar_url": "https://zen-browser.app/favicon.svg",
|
||||
"username": "Firefox RC Checker",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/189789277?v=4",
|
||||
}
|
||||
response = requests.post(webhook_url, json=message)
|
||||
if response.status_code == 204:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue