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 %}