generated from Nemesis/Exemple
test addquote
This commit is contained in:
parent
ad255bec83
commit
45c52b5ee0
1 changed files with 4 additions and 4 deletions
|
@ -1267,14 +1267,14 @@ def addquote(room,event):
|
|||
except:
|
||||
print("\n\nerreur body " + json.dumps(content))
|
||||
try:
|
||||
content['formatted_body'] = string.replace(content['formatted_body'], "<p>addquote</p>\n", "")
|
||||
content['formatted_body'] = string.replace(content['formatted_body'], "addquote", "")
|
||||
content['formatted_body'] = content['formatted_body'].replace("<p>addquote</p>\n", "")
|
||||
content['formatted_body'] = content['formatted_body'].replace("addquote", "")
|
||||
except:
|
||||
print("\n\nerreur formatted_body " + json.dumps(content))
|
||||
print(json.dumps(content))
|
||||
#print(json.dumps(content))
|
||||
# Récupération de l'auteur
|
||||
auteur = "Un nain connu"
|
||||
match = re.search(r"<(@\w+:\w+:\w+)>", content['body'])
|
||||
match = re.search(r"<(@\w+:\w+.\w+)>", content['body'])
|
||||
if match:
|
||||
auteur = match.group(1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue