diff --git a/commands/Moderation/sanctions.js b/commands/Moderation/sanctions.js index 77c081bf..1064190a 100644 --- a/commands/Moderation/sanctions.js +++ b/commands/Moderation/sanctions.js @@ -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, diff --git a/dashboard/routes/commands.js b/dashboard/routes/commands.js index 022f672a..e73018bb 100644 --- a/dashboard/routes/commands.js +++ b/dashboard/routes/commands.js @@ -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")); }; diff --git a/dashboard/routes/updates.js b/dashboard/routes/updates.js index 6e720097..b806283b 100644 --- a/dashboard/routes/updates.js +++ b/dashboard/routes/updates.js @@ -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")); }; diff --git a/dashboard/views/commands.ejs b/dashboard/views/commands.ejs index 9d8155f6..57ce9d54 100644 --- a/dashboard/views/commands.ejs +++ b/dashboard/views/commands.ejs @@ -1,36 +1,8 @@ -<%- include('includes/head') %> -
-