From d3e00734059fcc5b347fb5148f2ab28756b788ab Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sun, 29 Jul 2018 01:19:44 +0200 Subject: Support for embeds and attachments. --- templates/main/bot/clean_logs.html | 71 +++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/main/bot/clean_logs.html b/templates/main/bot/clean_logs.html index 00fb3d96..83ee0cba 100644 --- a/templates/main/bot/clean_logs.html +++ b/templates/main/bot/clean_logs.html @@ -4,8 +4,77 @@ {% for message in messages %} - {{ message.author }}{{ message.timestamp }}
+ + + {{ message.author }}{{ message.timestamp }} | User ID: {{ message.user_id }}
{{ message.content }} + + + {% for attachment in message.attachments %} + {{ attachment }} + {% endfor %} + + + {% for embed in message.embeds %} +
+ + + {% if embed.title %} + {% if embed.url %} + {{ embed.title }}
+ {% else %} + {{ embed.title }}
+ {% endif %} + {% endif %} + + + + {% if embed.description %} +
+ {{ embed.description }} + {% endif %} + + + {% if embed.fields %} +
+ {% for field in embed.fields %} +
+
+ {% if field.name %} + {{ field.name }}
+ {% endif %} + + {{ field.value }} +
+ {% endfor %} +
+ {% endif %} + + + {% if embed.image %} +
+ {% if embed.image.url %} + + {% endif %} + {% endif %} + + + {% if embed.thumbnail %} +
+ {% if embed.thumbnail.url %} + + {% endif %} + {% endif %} + + + {% if embed.footer %} +
+ {% if embed.footer.text %} + {{ embed.footer.text }} + {% endif %} + {% endif %} +
+ {% endfor %} {% endfor %} -- cgit v1.2.3