Updated Web backend now with multi-user, misc data and endpoints improvements

This commit is contained in:
2024-08-12 02:03:47 +02:00
parent 6ebc68127e
commit 5ba0df43c4
16 changed files with 341 additions and 180 deletions

View File

@ -7,7 +7,7 @@ def cEcho(context:EventContext, data:InputMessageData):
if not (text := data.command.body):
return send_message(context, {
"text_html": context.endpoint.get_string("empty", data.user.settings.language)})
prefix = f'<a href="{data.message_url}">🗣️</a> '
prefix = f'<a href="{data.message_url or ""}">🗣️</a> '
if len(data.command.tokens) == 2: # text is a single word
nonascii = True
for char in data.command.tokens[1]: