gaber-elsayed

Untitled

Oct 11th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. <h3 class="text-info">
  2. Top Votes Bots <img title="top votes" src="https://media.discordapp.net/attachments/549991142989758475/639469797486231552/9188c78b21d.png" class="profilebadges">
  3. </h3>
  4. <h5 class="text-info">
  5. The top four most voted bots this month.
  6. </h5>
  7. <br>
  8.  
  9. <div class="bots">
  10. <% if (bot.db.has('bots')) { %>
  11. <% const sorted = Object.keys(bot.db.fetch('bots')).sort((a, b) => { return (bot.db.fetch(`bots.${b}.vote`) || 0) - (bot.db.fetch(`bots.${a}.vote`) || 0) }) %>
  12. <% const top = sorted.splice(0, Object.keys(bot.db.fetch('bots')).length) %>
  13. <% const map = top.map(x=>x) %>
  14. <% for(var i = 0; i < Object.keys(bot.db.fetch('bots')).length; i++) { %>
  15. <% let idd = map[i] %>
  16. <% if(bot.db.has(`bots.${idd}.status`) === true) { %>
  17. <% let bb = bot.db.fetch(`bots.${idd}`) %>
  18. <% if (bb.status === "Approved") { %>
  19. <% if(bot.db.has(`bots.${idd}.verfiyed`) === true) { %>
  20. <div class="card col-sm-3">
  21. <% } else {%>
  22. <div class="card cardb col-sm-3">
  23. <% } %>
  24. <center>
  25. <%if (bot.users.get(idd)){%>
  26. <img class="card-img-top" style="padding-top: 3%;border-radius: 50%;; width: 75%" src="<%=bot.users.get(idd).displayAvatarURL%>" alt="Bot Avatar">
  27. <% } else { %>
  28. <img class="card-img-top" style="padding-top: 3%; border-radius: 50%; width: 75%" src="<%=bb.avatar%>" alt="Bot Avatar">
  29. <% } %>
  30. <div class="card-body">
  31. <%if (bot.users.get(idd)){%>
  32. <h4 class="card-title text-info"><%=bot.users.get(idd).username%></h4>
  33. <% } else { %>
  34. <h4 class="card-title text-info"><%=bb.username%></h4>
  35. <% } %>
  36. <%if (bot.users.get(idd)){%>
  37. <% if (bot.users.get(idd).presence.status === 'online') {%>
  38. <span class="badge badge-pill badge-success">Online</span>
  39. <%} else if(bot.users.get(idd).presence.status === 'offline'){%>
  40. <span class="badge badge-pill badge-secondary">Offline</span>
  41. <%}else if (bot.users.get(idd).presence.status === 'dnd'){%>
  42. <span class="badge badge-pill badge-danger">DND</span>
  43. <%}else if(bot.users.get(idd).presence.status === 'idle'){%>
  44. <span class="badge badge-pill badge-warning">IDLE</span>
  45. <%} %>
  46. <% } else { %>
  47. <span class="badge badge-pill badge-secondary">Offline</span>
  48. <% } %>
  49. <p class="card-text text-white" title="<%= bb.overview%>"><%= bb.overview.length > 50 ? bb.overview.slice(0, 53) + "..." : bb.overview%></p>
  50. <a href="https://discordapp.com/oauth2/authorize?client_id=<%=idd%>&scope=bot&permissions=0" class="btn btn-primary">Invite</a>
  51. <a href="/view/<%=idd%>" class="btn btn-secondary">View</a>
  52. </div>
  53. </center>
  54. </div>
  55. </div>
  56. <% } %>
  57. <% } %>
  58. <% } %>
  59. <% } else {%>
  60. <h5 style="margin-left: 10px;color:white;">
  61. كن اول من يقدم
  62. </h5>
  63. <% } %>
  64.  
  65. <hr style="background-color: grey;">
  66. <h3 class="text-info">
  67. Certified Bots <img title="Certified Bots" style="width: 70px" src="https://media.discordapp.net/attachments/897122473642979339/897122481817669662/oAw5t1pWfpwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0xMS0xN1QxNjozMTozNiswMDowMK118KoAAAAldEVYdGRhdGU6bW9kaWZ.png" class="profilebadges">
  68.  
  69. </h3>
  70. <h5 class="text-info">
  71. These are the bots certified by our certification programm
  72. </h5>
  73. <br>
  74. <hr style="background-color: grey;">
  75.  
  76. <h3 class="text-info">
  77. Last Added Bots
  78. </h3>
  79. <h5 class="text-info">
  80. These are the bots recently added
  81. </h5>
  82. <br>
  83. <br>
Add Comment
Please, Sign In to add comment