Kleine Änderungen
This commit is contained in:
parent
f95fc5df52
commit
5c4ba10436
4
bot.py
4
bot.py
@ -80,7 +80,7 @@ def start(bot, update):
|
|||||||
if not utils.can_use_bot(update):
|
if not utils.can_use_bot(update):
|
||||||
return
|
return
|
||||||
update.message.reply_text(
|
update.message.reply_text(
|
||||||
text='<b>Willkommen beim RSS-Bot!</b>\nSende /help, um zu starten.',
|
text='<b>Willkommen bei RikoBot!</b>\nSende /help, um zu starten.',
|
||||||
parse_mode=telegram.ParseMode.HTML
|
parse_mode=telegram.ParseMode.HTML
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ def check_feed(bot, key):
|
|||||||
content = utils.get_content(entry.summary)
|
content = utils.get_content(entry.summary)
|
||||||
else:
|
else:
|
||||||
content = ''
|
content = ''
|
||||||
text = '<b>{post_title}</b>\n<i>{feed_title}</i>\n{content}'.format(
|
text = '<b>[</b>#RSS<b>] {post_title}</b>\n<i>{feed_title}</i>\n{content}'.format(
|
||||||
post_title=post_title,
|
post_title=post_title,
|
||||||
feed_title=feed_title,
|
feed_title=feed_title,
|
||||||
content=content
|
content=content
|
||||||
|
1
utils.py
1
utils.py
@ -39,6 +39,7 @@ def remove_html_tags(html):
|
|||||||
|
|
||||||
def clean_rss(content):
|
def clean_rss(content):
|
||||||
"""Cleans content"""
|
"""Cleans content"""
|
||||||
|
content = content.replace('\n', ' ')
|
||||||
content = content.replace('[…]', '')
|
content = content.replace('[…]', '')
|
||||||
content = content.replace('[bilder]', '')
|
content = content.replace('[bilder]', '')
|
||||||
content = content.replace('[boerse]', '')
|
content = content.replace('[boerse]', '')
|
||||||
|
Reference in New Issue
Block a user