Показывать обновления и команды без авторизации

This commit is contained in:
JonnyBro 2021-12-19 17:16:15 +05:00
parent 91fe582c06
commit a87bca863b
6 changed files with 16 additions and 65 deletions

View file

@ -8,7 +8,7 @@ class Sanctions extends Command {
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [ "warns", "see-warns", "view-warns", "see-sanctions", "view-sanctions", "infractions", "view-infractions", "see-infractions" ],
aliases: [ "warns" ],
memberPermissions: [ "MANAGE_MESSAGES" ],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,

View file

@ -1,10 +1,9 @@
const express = require("express"),
router = express.Router(),
CheckAuth = require("../auth/CheckAuth"),
fs = require("fs"),
marked = require("marked");
router.get("/", CheckAuth, function (req, res) {
router.get("/", function (req, res) {
var md = function (filename) {
return marked.parse(fs.readFileSync("./dashboard/views/docs/" + filename, "utf8"));
};

View file

@ -1,10 +1,9 @@
const express = require("express"),
router = express.Router(),
CheckAuth = require("../auth/CheckAuth"),
fs = require("fs"),
marked = require("marked");
router.get("/", CheckAuth, function (req, res) {
router.get("/", function (req, res) {
var md = function (filename) {
return marked.parse(fs.readFileSync("./dashboard/views/docs/" + filename, "utf8"));
};

View file

@ -1,36 +1,8 @@
<!DOCTYPE html>
<html>
<%- include('includes/head') %>
<body class="hold-transition skin-red sidebar-mini">
<div class="wrapper">
<!-- The header is the topbar -->
<%- include('includes/header') %>
<!-- The sidebar includes the menu -->
<%- include('includes/sidebar') %>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1> Команды <small> Dashboard v1.0 </small> </h1>
<ol class="breadcrumb">
<li class="active"><a href="/commands"><i class="fa fa-home"></i> Команды </a></li>
</ol>
</section>
<section class="content">
<body>
<%- md("commands.md") %>
</section>
</div>
<!-- Footer includes credits and version -->
<%- include('includes/footer') %>
</div>
<!-- ./wrapper -->
</body>
</html>

View file

@ -1,3 +1,12 @@
# JaBa v3.0.1
### Добавлено
* Команда **loop** - переключение повтора одного трека или всей очереди (*loop song/queue*).
### Изменения
* Администраторы и модераторы могут использовать **skip**, **back** и **stop** принудительно (*skip/back/stop force/f*).
* Уменьшено количество требуемых голосов для команд **skip**, **stop** и **back**.
# JaBa v3.0
### Описание

View file

@ -1,36 +1,8 @@
<!DOCTYPE html>
<html>
<%- include('includes/head') %>
<body class="hold-transition skin-red sidebar-mini">
<div class="wrapper">
<!-- The header is the topbar -->
<%- include('includes/header') %>
<!-- The sidebar includes the menu -->
<%- include('includes/sidebar') %>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1> Обновления <small> Dashboard v1.0 </small> </h1>
<ol class="breadcrumb">
<li class="active"><a href="/updates"><i class="fa fa-home"></i> Обновления </a></li>
</ol>
</section>
<section class="content">
<body>
<%- md("updates.md") %>
</section>
</div>
<!-- Footer includes credits and version -->
<%- include('includes/footer') %>
</div>
<!-- ./wrapper -->
</body>
</html>