<% if (guilds && guilds.length) { %>
- <% guilds.sort((a,b)=> a.name.localeCompare(b.name)).forEach(g => { %>
-
+ <% const sorted = guilds.slice().sort((a,b)=> a.name.localeCompare(b.name)); const withBot = sorted.filter(g=> g.botInGuild !== false); const withoutBot = sorted.filter(g=> g.botInGuild === false); %>
+ <% withBot.forEach(g => { %>
+
<% if (g.icon) { %>

@@ -60,6 +61,26 @@
<% }) %>
+ <% if (withoutBot && withoutBot.length) { %>
+
+ <% withoutBot.forEach(g => { %>
+
+
+ <% if (g.icon) { %>
+

+ <% } else { %>
+
S
+ <% } %>
+
+
+
+
+ <% }) %>
+ <% } %>
<% } else { %>
No servers available
<% } %>
diff --git a/src/server/views/partials/dashboard_nav.ejs b/src/server/views/partials/dashboard_nav.ejs
index 93da660..3d3d568 100644
--- a/src/server/views/partials/dashboard_nav.ejs
+++ b/src/server/views/partials/dashboard_nav.ejs
@@ -23,8 +23,9 @@