From 5c4ba10436c9c214cb7b9328b2ed41e65c1a412f Mon Sep 17 00:00:00 2001 From: Akamaru Date: Thu, 21 Sep 2017 00:13:40 +0200 Subject: [PATCH] =?UTF-8?q?Kleine=20=C3=84nderungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 4 ++-- utils.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 6ccaf54..427c00a 100644 --- a/bot.py +++ b/bot.py @@ -80,7 +80,7 @@ def start(bot, update): if not utils.can_use_bot(update): return update.message.reply_text( - text='Willkommen beim RSS-Bot!\nSende /help, um zu starten.', + text='Willkommen bei RikoBot!\nSende /help, um zu starten.', parse_mode=telegram.ParseMode.HTML ) @@ -277,7 +277,7 @@ def check_feed(bot, key): content = utils.get_content(entry.summary) else: content = '' - text = '{post_title}\n{feed_title}\n{content}'.format( + text = '[#RSS] {post_title}\n{feed_title}\n{content}'.format( post_title=post_title, feed_title=feed_title, content=content diff --git a/utils.py b/utils.py index 3b7359c..8b4b99d 100644 --- a/utils.py +++ b/utils.py @@ -39,6 +39,7 @@ def remove_html_tags(html): def clean_rss(content): """Cleans content""" + content = content.replace('\n', ' ') content = content.replace('[…]', '') content = content.replace('[bilder]', '') content = content.replace('[boerse]', '')