From 32e9bb3612c8274a1ed7aa3e41ffc2447237c722 Mon Sep 17 00:00:00 2001 From: Maaxxs Date: Tue, 29 Sep 2026 07:22:04 +0200 Subject: [PATCH] Vorschau zeigt Siels echtes Discord-Profilbild Co-Authored-By: Claude Opus 5.5 --- static/js/rr.js | 2 +- static/js/tk.js | 2 +- static/js/welcome.js | 2 +- templates/rr_edit.html | 4 ++-- templates/tk_edit.html | 4 ++-- templates/welcome.html | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/js/rr.js b/static/js/rr.js index d3f3729..b088744 100644 --- a/static/js/rr.js +++ b/static/js/rr.js @@ -110,7 +110,7 @@ } const editor = SielEditor.mount(document.getElementById('rr-editor'), start.message, { - botName: 'Siel', botAvatar: '/static/img/favicon-180.png', + botName: 'Siel', botAvatar: guild.bot_avatar || '/static/img/favicon-180.png', userName: user.name, userId: user.id, userAvatar: user.avatar || '', guildName: guild.name, memberCount: guild.member_count || 1, channelName: (id) => (guild.channels.find((c) => c.id === id) || {}).name, diff --git a/static/js/tk.js b/static/js/tk.js index 435e8dc..e4ffb84 100644 --- a/static/js/tk.js +++ b/static/js/tk.js @@ -61,7 +61,7 @@ // --- Vorschau-Kontext const ctx = { - botName: 'Siel', botAvatar: '/static/img/favicon-180.png', + botName: 'Siel', botAvatar: guild.bot_avatar || '/static/img/favicon-180.png', userName: user.name, userId: user.id, userAvatar: user.avatar || '', guildName: guild.name, memberCount: guild.member_count || 1, channelName: (id) => (channels.find((c) => c.id === id) || {}).name, diff --git a/static/js/welcome.js b/static/js/welcome.js index 2e9356a..13bbb18 100644 --- a/static/js/welcome.js +++ b/static/js/welcome.js @@ -11,7 +11,7 @@ const roles = new Map(guild.roles.map((r) => [r.id, r.name])); const baseCtx = { botName: 'Siel', - botAvatar: '/static/img/favicon-180.png', + botAvatar: guild.bot_avatar || '/static/img/favicon-180.png', userName: user.name, userIdName: user.name, userId: user.id, diff --git a/templates/rr_edit.html b/templates/rr_edit.html index 8a594a1..15b0e3c 100644 --- a/templates/rr_edit.html +++ b/templates/rr_edit.html @@ -13,7 +13,7 @@ {% if error %}
{{ error }}
{% else %} - +
@@ -79,6 +79,6 @@ - + {% endif %} {% endblock %} diff --git a/templates/tk_edit.html b/templates/tk_edit.html index 8de4509..9786e57 100644 --- a/templates/tk_edit.html +++ b/templates/tk_edit.html @@ -13,7 +13,7 @@ {% if error %}
{{ error }}
{% else %} - + @@ -111,6 +111,6 @@
- + {% endif %} {% endblock %} diff --git a/templates/welcome.html b/templates/welcome.html index af8ab7c..173830c 100644 --- a/templates/welcome.html +++ b/templates/welcome.html @@ -9,7 +9,7 @@ {% if error %}
{{ error }}
{% else %} - +
@@ -162,6 +162,6 @@
- + {% endif %} {% endblock %}