From 7b85d3d503959796a150b78ae66817ae7bf5b4cd Mon Sep 17 00:00:00 2001 From: CorwinDev <88144943+CorwinDev@users.noreply.github.com> Date: Fri, 19 Aug 2022 20:47:17 +0200 Subject: [PATCH] Solved issue --- website/views/index.ejs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/website/views/index.ejs b/website/views/index.ejs index d6510bd..3587fed 100644 --- a/website/views/index.ejs +++ b/website/views/index.ejs @@ -34,7 +34,7 @@ type: 'GET', success: function(data) { var html = ''; - if(!data.array.length) html = '
No results found
'; + if (!data.array.length) html = '
No results found
'; for (var i = 0; i < data.array.length; i++) { if (i == 5) { break; @@ -169,10 +169,11 @@
<% } %> <% for(let i=0; i < nbots.length; i++) { if (i===5) break; var bot=nbots[i]; if(bot) { %> + <% var serverr = global.bsl.guilds.cache.get(bot.id); if(serverr) { %>
- <%= bot.name %> + <%= bot.name %>
-

: <%= bot.votes || 0 %> : <%= global.bsl.guilds.cache.get(bot.id).memberCount.toLocaleString().replace(',', '.' ) %> +

: <%= bot.votes || 0 %> : <%= serverr.memberCount.toLocaleString().replace(',', '.' ) %>

@@ -202,6 +203,7 @@
<% } %> <% } %> + <% } %>
@@ -214,10 +216,12 @@
<% servers.sort((a, b) => b.bump - a.bump).slice(0, 5).map(bot => { if(!bot) return; %> + <% var serverr = global.bsl.guilds.cache.get(bot.id); if(serverr) { %> +
- <%= bot.name %> + <%= bot.name %>
-

: <%= bot.votes || 0 %> : <%= global.bsl.guilds.cache.get(bot.id).memberCount.toLocaleString().replace(',', '.' ) %>: <%=bot.bumps %> +

: <%= bot.votes || 0 %> : <%= serverr.memberCount.toLocaleString().replace(',', '.' ) %>: <%=bot.bumps %>

@@ -236,6 +240,7 @@ <% }) %>
<% } %> + <% } %>
<% }) %>
@@ -257,8 +262,9 @@
<% } %> <% for(let i=0; i < nbots.length; i++) { if (i===5) break; var bot=nbots[i]; if(bot) { %> + <% var serverr = global.bsl.guilds.cache.get(bot.id); if(serverr) { %>
- <%= bot.name %> + <%= bot.name %>

: <%= bot.votes || 0 %> : <%= global.bsl.guilds.cache.get(bot.id).memberCount.toLocaleString().replace(',', '.' ) %>: <%=bot.bumps %>

@@ -278,6 +284,7 @@ <% }) %>
<% } %> + <% } %>
<% } %> <% } %>