<!DOCTYPE html>
<html lang="en">
  <%- include(headerPath, { 
    bot, user, path, 
    description: "Search our list of bots to find one to add new life to your server!", 
    description2: "Infinity Bot List", 
    title: `${bot.user.username} | Bots Page`, 
    main_title: `${bot.user.username} | Bots Page`, 
    image: "none" }) %>
<body>

<center>
  <img src="https://i.imgur.com/GRo0Zug.png" alt="Infinity Bot List" style="width: 220px; animation: jump 0.8s;">
  <br>
  <input class="searchinput" placeholder="Moderation with reaction roles" id="search_value"/>
  <div class="container" style="max-width: 1200px;" id="output"></div>
  <h3>Search our list of bots to add new life to your server!</h3>
  <hr>
  <!-- Bots -->
  <% if(bots.length === 0) { %>
    <b><i class="fa fa-warning"></i> Wrong page, there are no bots here!</b>
    <% }else{ %>
<div style="animation: start 2s;">
  <div class="container" style="max-width: 1750px;">
      <% for(i = 0; i < bots.length; i++){ %>
         <%- include(dynamic + "/others/botcard", {bots: bots[i]}) %>
      <% } %>
      <% if(premium_bots[0]) { %><%- include(dynamic + "/others/premium_card", {bots: premium_bots[0]}) %><% } %>
      <% if(premium_bots[1]) { %><%- include(dynamic + "/others/premium_card", {bots: premium_bots[1]}) %><% } %>
      <% if(premium_bots[2]) { %><%- include(dynamic + "/others/premium_card", {bots: premium_bots[2]}) %><% } %>
      <% if(premium_bots[3]) { %><%- include(dynamic + "/others/premium_card", {bots: premium_bots[3]}) %><% } %>
      <% if(premium_bots[4]) { %><%- include(dynamic + "/others/premium_card", {bots: premium_bots[4]}) %><% } %>
    <% } %>
  </div></div><br>
  <% if(bots.length == 10) { %> 
    <button class="pages" id="prev" onclick="prev()"><i class="fa fa-arrow-circle-left"></i> Previous</button> 
    <button class="pages" onclick="next()">Next <i class="fa fa-arrow-circle-right"></i></button> 
    <% }else if(bots.length < 10){ %> 
    <button class="pages" onclick="prev()"><i class="fa fa-arrow-circle-left"></i> Previous</button> 
    <% } %>
</center>
<!-- Search Script -->
<script src="/static/assets/scripts/search.js"></script>
<!-- Prev & Next Page Script -->
<script src="/static/assets/scripts/pages.js"></script>

</body>
<hr>

<center>
<a href="//www.dmca.com/Protection/Status.aspx?ID=6bfe1403-c4b3-45a4-921f-1359a6215327" style="display:none;" title="DMCA.com Protection Status" class="dmca-badge"> <img src ="https://images.dmca.com/Badges/dmca-badge-w250-5x1-08.png?ID=6bfe1403-c4b3-45a4-921f-1359a6215327"  alt="DMCA.com Protection Status" /></a>  <script src="https://images.dmca.com/Badges/DMCABadgeHelper.min.js"> </script>
</center>

<%- include(footerPath) %>
</html>
