Update README
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
# discord-rss-bot
|
# 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
|
## Installation
|
||||||
|
|
||||||
@ -52,9 +52,3 @@ This is not recommended if you don't have an init system (e.g., systemd)
|
|||||||
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
- You can stop the bot with <kbd>Ctrl</kbd> + <kbd>c</kbd>.
|
||||||
|
|
||||||
Note: You will need to run `poetry install` again if [poetry.lock](poetry.lock) has been modified.
|
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)
|
|
||||||
|
@ -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:
|
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)
|
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:
|
if custom_embed.footer_icon_url and not custom_embed.footer_text:
|
||||||
# TODO: Can this be done without a text?
|
discord_embed.set_footer(text="-", icon_url=custom_embed.footer_icon_url)
|
||||||
discord_embed.set_footer(icon_url=custom_embed.footer_icon_url)
|
|
||||||
|
|
||||||
webhook.add_embed(discord_embed)
|
webhook.add_embed(discord_embed)
|
||||||
|
|
||||||
@ -139,7 +138,7 @@ def send_to_discord(custom_reader: Reader | None = None, feed: Feed | None = Non
|
|||||||
else:
|
else:
|
||||||
# If the user has set the custom message to an empty string, we will use the default message, otherwise we
|
# 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.
|
# 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)
|
webhook_message = custom_message.replace_tags_in_text_message(entry)
|
||||||
else:
|
else:
|
||||||
webhook_message: str = default_custom_message
|
webhook_message: str = default_custom_message
|
||||||
|
Reference in New Issue
Block a user