Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
  • Loading branch information
N1R0tka authored Feb 27, 2022
1 parent 92c7179 commit a335f09
Showing 1 changed file with 173 additions and 0 deletions.
173 changes: 173 additions & 0 deletions source/server/views/settings.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
<%- include("includes/header") -%>

<html>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous" />
<link rel="stylesheet" href="/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.1/css/bootstrap-select.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.1/js/bootstrap-select.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" />
</head>

<body style="background-color: #242438">
<h2 style="font-size: 65px; margin: 200px" class="display-3 text-center">
<i class="fas fa-tachometer-alt" style="color: rgba(233, 30, 99)"></i>
<b class="text-white"><%= guild.name %></b>
</h2>
<div class="container">
<div class="row premium-section mt-5">
<div class="col col-prem own-col">
<div class="row">
<div class="col col-ic">
<i class="fas fa-music text-danger fa-4x"></i>
</div>
<div class="col">
<h5 class="text-white">Songs:</h5>
<span class="num-count text-danger"><%= songs || 0 %></span>
</div>
</div>
</div>
<div class="col col-prem exp-col">
<div class="row">
<div class="col col-ic">
<i class="fas fa-pause text-success fa-4x"></i>
</div>
<div class="col">
<h5 class="text-white">Type:</h5>
<span class="num-count text-success"><%= pause || "Empty" %></span>
</div>
</div>
</div>
<div class="col col-prem" id="creditsbtn">
<div class="row">
<div class="col col-ic">
<i class="fas fa-sync text-warning fa-4x"></i>
</div>
<div class="col">
<h5 class="text-white">Loop:</h5>
<span class="num-count text-warning"><%= repeat || "Empty" %></span>
</div>
</div>
</div>
<div class="col col-prem" id="creditsbtn">
<div class="row">
<div class="col col-ic">
<i class="fas fa-robot text-info fa-4x"></i>
</div>
<div class="col">
<h5 class="text-white">Prefix:</h5>
<span class="num-count text-info"><%= db.get(`Settings_${guild.id}.prefix`) %></span>
</div>
</div>
</div>
</div>
<div align="center" style="
background-color: #242438;
margin: 10% 0 0 0;
">
<h3 class="text-white">The Current Song:</h3>
<video class="audiplay" style="background: #242438">
<source src=<%=song%> type="audio/webm">
</source>
</video>
</div>
<script src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/audiplay.min.js"></script>
<section>
<div class="container pt-4">
<section>
<div class="row">
<form method="POST">
<div class="card-body">
<div class="main-bot-sec">
<div class="typorgraphy-prem" style="display: inline-block">
<h4 class="text-white">Prefix: <b style="color: rgb(233, 30, 99);"><%= db.get(`Settings_${guild.id}.prefix`) %></b>
<p class="exp-time text-dark">from here you can change the bot prefix in your server.</p>
</h4>
</div>
<div style="width: 60%; margin-left: 40%;">
<input style="background-color: #242438; color: #fff; border: 2px solid #5e5ac9;" type="text" class="form-control" name="prefix" value="<%= db.get(`Settings_${guild.id}.prefix`) %>" placeholder="Your Prefix">
</div>
</div>

<div class="main-bot-sec">
<div class="typorgraphy-prem" style="display: inline-block">
<h4 class="text-white">Langauge: <b style="color: rgb(233, 30, 99);"><%= db.get(`Settings_${guild.id}.lang`) %></b>
<p class="exp-time text-dark">from here you can change the bot langauge in your server.</p>
</h4>
</div>
<div style="width: 20%; margin-left: 40%;">
<select style="background-color: #242438; padding: 0 140%; color: #fff; border-radius: 5px; border: 2px solid #5e5ac9;" name="lang" id="lang">
<% ['en', 'ar'].forEach((value, i) => { %>
<option value="<%= value %>" <%= db.get(`Settings_${guild.id}.lang`) ? db.get(`Settings_${guild.id}.lang`) : "" %>> <%= value %>
</option>
<% }) %>
</select>
</div>
</div>

<div class="main-bot-sec">
<div class="typorgraphy-prem" style="display: inline-block">
<h4 class="text-white">Volume: <b style="color: rgb(233, 30, 99);"><%= db.fetch(`DefVol_${guild.id}`) %></b>
<p class="exp-time text-dark">from here you can change the bot default volume.</p>
</h4>
</div>
<div style="width: 60%; margin-left: 40%;">
<input style="background-color: #242438; color: #fff; border: 2px solid #5e5ac9;" type="range" class="form-control" min="0" max="100" step="0.5" id="customRange3" name="mxv" value="<%= db.fetch(`DefVol_${guild.id}`) %>">
</div>
</div>

<div class="main-bot-sec">
<div class="typorgraphy-prem" style="display: inline-block">
<h4 class="text-white">DJ Toggle: <b style="color: rgb(233, 30, 99);"><%= db.fetch(`DJ_TOG_${guild.id}`) %></b>
<p class="exp-time text-dark">from here you can change the bot toggle of the dj role in your server.</p>
</h4>
</div>
<div style="width: 20%; margin-left: 40%;">
<select style="background-color: #242438; padding: 0 140%; color: #fff; border-radius: 5px; border: 2px solid #5e5ac9;" name="djTo" id="djTo">
<% ['on', 'off'].forEach((value, i) => { %>
<option value="<%= value %>" <%= db.fetch(`DJ_TOG_${guild.id}`) ? db.fetch(`DJ_TOG_${guild.id}`) : "" %>> <%= value %>
</option>
<% }) %>
</select>
</div>
</div>

<div class="main-bot-sec">
<div class="typorgraphy-prem" style="display: inline-block">
<h4 class="text-white">Dj Role: <b style="color: rgb(233, 30, 99);"><%= db.fetch(`DJ_TOG_${guild.id}`) %></b>
<p class="exp-time text-dark">from here you can change the bot dj role in your server.</p>
</h4>
</div>
<div style="width: 20%; margin-left: 40%;">
<select style="background-color: #242438; padding: 0 128%; color: #fff; border-radius: 5px; border: 2px solid #5e5ac9;" name="role" id="role">
<% guild.roles.cache.filter(role=>!role.managed).sort((a, b) => b.rawPosition - a.rawPosition).forEach((value, i) => { %>
<option value="<%= value %>" <%= db.fetch(`DJ_${guild.id}`) ? db.fetch(`DJ_${guild.id}`) : "" %>> <%= value.name %>
</option>
<% }) %>
</select>
</div>
</div>

</div>
<button type="submit" class="btn btn-success text-white" style="font-size: 50px;">
<i class="fas fa-save"></i> Save
</button>
</form>
</div>
</section>
<br />
<br />
<br />
<br />
</div>
</body>
<footer></footer>

</html>

0 comments on commit a335f09

Please sign in to comment.