You can now customize the default message

This commit is contained in:
2023-01-17 23:59:18 +01:00
parent 904e4955a8
commit b2ab72d4b0
5 changed files with 76 additions and 20 deletions

View File

@ -9,6 +9,8 @@ logging.basicConfig(level=logging.INFO, format=logging_format)
data_dir: str = user_data_dir(appname="discord_rss_bot", appauthor="TheLovinator", roaming=True)
os.makedirs(data_dir, exist_ok=True)
default_custom_message: str = "{{entry_title}}\n{{entry_link}}"
def get_webhook_for_entry(custom_reader: Reader, entry: Entry) -> str:
"""