1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

HTML sistemato

This commit is contained in:
Steffo 2016-01-20 21:50:22 +01:00
parent 9ba0bb62eb
commit ada9a4064a

10
bot.py
View file

@ -222,11 +222,11 @@ while True:
if 'text' not in r:
r['text'] = ""
# HTML nella descrizione
r['text'].replace("<b>", "*")
r['text'].replace("</b>", "*")
r['text'].replace("<i>", "_")
r['text'].replace("</i>", "_")
r['text'].replace("$", "")
r['text'] = r['text'].replace("<b>", "*")
r['text'] = r['text'].replace("</b>", "*")
r['text'] = r['text'].replace("<i>", "_")
r['text'] = r['text'].replace("</i>", "_")
r['text'] = r['text'].replace("$", "")
# Nessuna rarità
if 'rarity' not in r:
r['rarity'] = "None"