1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +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: if 'text' not in r:
r['text'] = "" r['text'] = ""
# HTML nella descrizione # HTML nella descrizione
r['text'].replace("<b>", "*") r['text'] = r['text'].replace("<b>", "*")
r['text'].replace("</b>", "*") r['text'] = r['text'].replace("</b>", "*")
r['text'].replace("<i>", "_") r['text'] = r['text'].replace("<i>", "_")
r['text'].replace("</i>", "_") r['text'] = r['text'].replace("</i>", "_")
r['text'].replace("$", "") r['text'] = r['text'].replace("$", "")
# Nessuna rarità # Nessuna rarità
if 'rarity' not in r: if 'rarity' not in r:
r['rarity'] = "None" r['rarity'] = "None"