chore: fix discord webhook call to include APP_VERSION
This commit is contained in:
parent
e5a5f4f7d2
commit
0e8dba9d6d
1 changed files with 3 additions and 1 deletions
|
|
@ -168,7 +168,9 @@ class Discorss:
|
||||||
"attachments": [],
|
"attachments": [],
|
||||||
}
|
}
|
||||||
custom_header = {
|
custom_header = {
|
||||||
"user-agent": "DiscoRSS (https://git.frzn.dev/amr/discorss, 0.2)",
|
"user-agent": "DiscoRSS (https://git.frzn.dev/amr/discorss, {})".format(
|
||||||
|
self.APP_VERSION
|
||||||
|
),
|
||||||
"content-type": "application/json",
|
"content-type": "application/json",
|
||||||
}
|
}
|
||||||
webhook_string = json.dumps(webhook)
|
webhook_string = json.dumps(webhook)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue