diff --git a/.gitignore b/.gitignore deleted file mode 100644 index f8ec04c..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.conf -*.txt -log/ \ No newline at end of file diff --git a/discorss.py b/discorss.py index c720c68..288aa4e 100755 --- a/discorss.py +++ b/discorss.py @@ -14,7 +14,7 @@ import requests import feedparser from pathlib import Path import json -# import datetime +import datetime import time import os @@ -66,10 +66,10 @@ def main(): { "title": str(feed.entries[0]["title"]), "url": str(feed.entries[0]["link"]), - "color": 216128, - "footer": { + "color": 5814783, + "provider": { "name": "DiscoRSS", - # "url": "https://git.frzn.dev/amr/discorss", + "url": "https://git.frzn.dev/amr/discorss", }, "author": {"name": str(hook["name"]), "url": str(hook["siteurl"])}, "fields": [ @@ -92,8 +92,6 @@ def main(): r = requests.post( hook["webhook"], data=webhook_string, headers=custom_header ) - if r.status_code != '200': - print("Error {} while trying to post {}".format(r.status_code, hook["webhook"])) app_config["lastupdate"] = now with open(config_file_path, "w") as config_file: json.dump(app_config, config_file, indent=4)