diff --git a/README.md b/README.md index c2db904..352bd0f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # discord-rss-bot -Subscribe to RSS feeds and get updates to a Discord webhook. Built with [reader](https://github.com/lemon24/reader). +Subscribe to RSS feeds and get updates to a Discord webhook. ## Installation @@ -51,10 +51,4 @@ This is not recommended if you don't have an init system (e.g., systemd) - Type `poetry run python discord_rss_bot/main.py` into the PowerShell window. - You can stop the bot with Ctrl + c. -Note: You will need to run `poetry install` again if [poetry.lock](poetry.lock) has been modified. - -## Need help? - -- Email: [tlovinator@gmail.com](mailto:tlovinator@gmail.com) -- Discord: TheLovinator#9276 -- Send an issue: [discord-rss-bot/issues](https://github.com/TheLovinator1/discord-rss-bot/issues) +Note: You will need to run `poetry install` again if [poetry.lock](poetry.lock) has been modified. \ No newline at end of file diff --git a/discord_rss_bot/feeds.py b/discord_rss_bot/feeds.py index c35310a..61f6c35 100644 --- a/discord_rss_bot/feeds.py +++ b/discord_rss_bot/feeds.py @@ -96,8 +96,7 @@ def create_embed_webhook(webhook_url: str, entry: Entry) -> DiscordWebhook: if custom_embed.footer_icon_url and custom_embed.footer_text: discord_embed.set_footer(text=custom_embed.footer_text, icon_url=custom_embed.footer_icon_url) if custom_embed.footer_icon_url and not custom_embed.footer_text: - # TODO: Can this be done without a text? - discord_embed.set_footer(icon_url=custom_embed.footer_icon_url) + discord_embed.set_footer(text="-", icon_url=custom_embed.footer_icon_url) webhook.add_embed(discord_embed) @@ -139,7 +138,7 @@ def send_to_discord(custom_reader: Reader | None = None, feed: Feed | None = Non else: # If the user has set the custom message to an empty string, we will use the default message, otherwise we # will use the custom message. - if custom_message.get_custom_message(reader, entry.feed) != "": # noqa: PLC1901 + if custom_message.get_custom_message(reader, entry.feed) != "": webhook_message = custom_message.replace_tags_in_text_message(entry) else: webhook_message: str = default_custom_message