mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 12:48:36 -06:00
Compare commits
2 commits
c38881922d
...
64ab240a8a
Author | SHA1 | Date | |
---|---|---|---|
64ab240a8a | |||
8a3e6fa35f |
2 changed files with 7 additions and 0 deletions
|
@ -23,3 +23,5 @@
|
|||
enabled = false
|
||||
url = url
|
||||
topic = topic
|
||||
token = token
|
||||
|
||||
|
|
|
@ -55,6 +55,11 @@ def send_notif(appstate, error=False):
|
|||
continue
|
||||
headers = {'Icon': 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/40/Revanced-logo-round.svg/240px-Revanced-logo-round.svg.png',
|
||||
'Title': encoded_title}
|
||||
try:
|
||||
token = config[entry]['token']
|
||||
headers['Authorization'] = 'Bearer ' + token
|
||||
except:
|
||||
continue
|
||||
try:
|
||||
req.post(f"{url}/{topic}", msg, headers=headers)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in a new issue