Added bots & votes
This commit is contained in:
1 parent
c058ab2e55
commit
47dfdbd344
16 files changed
+798
-457
No files matched your search
@@ -21,10 +21,13 @@
|
||||
<input type="text" name="bot_short" id="floating_last_name" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " required />
|
||||
<label for="bot_name" class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Short Description (Will be show on home page)</label>
|
||||
</div>
|
||||
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<input type="text" name="bot_owners" id="floating_last_name" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " required />
|
||||
<label for="bot_name" class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Owners (split with <strong>,</strong> ) (You are automatic included!)</label>
|
||||
</div>
|
||||
<!-- tags -->
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<select multiple name="tag" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required>
|
||||
<select multiple name="tags" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required>
|
||||
<option value="moderation">Moderation</option>
|
||||
<option value="fun">Fun</option>
|
||||
<option value="utility">Utility</option>
|
||||
|
||||
@@ -1,2 +1,68 @@
|
||||
<%- include('../includes/header.ejs', { title: bot.name, bot: bot}) %>
|
||||
<br><br><br><br>
|
||||
<div class="flex space-x-4 py-2 lg:h-5/6 sm:min-h-min">
|
||||
<div class="p-10 bg-blue-color w-2/3 text-white h-full m-4 mx-14">
|
||||
<pre><br><%= bot.long_description %></pre>
|
||||
</div>
|
||||
<div class="bg-blue-color w-1/4 p-10 text-white h-full m-4 ">
|
||||
<!-- bot avatar image -->
|
||||
<img class="w-full rounded-full" src="<%= bot.icon %>" alt="<%= bot.name %>" onerror="this.src='https://cdn.discordapp.com/avatars/<%= bot.id %>/<%=bota.avatar %>.webp'">
|
||||
<h1 class="text-3xl text-center">
|
||||
<%= bot.name %>
|
||||
</h1>
|
||||
<a href="/bot/<%= bot.id %>/join" class="button float-right"><i class="fa fa-link"></i>
|
||||
Invite</a>
|
||||
<% if(user) {
|
||||
bot.owners.forEach(a=>{
|
||||
if(a.id == user.id) {
|
||||
%>
|
||||
<div class="h6 mt-4">
|
||||
<i class="fa fa-user-crown"></i>Owner Options
|
||||
</div>
|
||||
<a href="/bot/<%= bot.id %>/edit" class="button float-right"><i class="fa fa-edit"></i>
|
||||
Edit</a>
|
||||
<%
|
||||
}
|
||||
})
|
||||
}
|
||||
%>
|
||||
<h6 class="text-xl mt-4">
|
||||
<i class="fa fa-question-circle"></i> Information
|
||||
</h6>
|
||||
<% if(bot.users){ %>
|
||||
<div class="mt-1">
|
||||
<div class="box-2-p"><i class="mt-1 fa fa-users"></i></div>
|
||||
<p class="box-2">Members: <%= bot.users %></p>
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
<% if(bot.servers){ %>
|
||||
<div class="mt-1">
|
||||
<div class="box-2-p"><i class="mt-1 fa fa-server"></i></div>
|
||||
<p class="box-2">Servers: <%= bot.servers %></p>
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="mt-1">
|
||||
<div class="box-2-p"><i class="mt-1 fa fa-users"></i></div>
|
||||
<p class="box-2">Votes: <%= bot.votes || 0 %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="h6 mt-4">
|
||||
<i class="fa fa-crown"></i> Owners
|
||||
</div>
|
||||
<% owners.forEach(admin=>{
|
||||
%>
|
||||
<a style="text-decoration: none;margin-bottom: -5px;" href="/user/<%= admin.id %>" class="flex mt-1">
|
||||
<div class="h-5 w-5 rounded-lg" style="background: url(<%= "https://cdn.discordapp.com/avatars/" + admin.id + "/" + admin.avatar + ".webp" || '../../img/undefined_avatar.png' %>) center center no-repeat; background-size: 100%;">
|
||||
</div>
|
||||
<p translate="no" class="box-2">
|
||||
<%=admin.username %>
|
||||
</p>
|
||||
</a>
|
||||
<% }) %>
|
||||
|
||||
<%- include('../includes/header.ejs', {title: 'Bot' }) %>
|
||||
</div>
|
||||
</div>
|
||||
<br><br><br>
|
||||
<%- include('../includes/footer.ejs') %>
|
||||
Whitespace-only changes.
Reference in new issue
Block a user