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