From 09894aab5278b790191af3639dfcda30f76787c1 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 12 Jan 2022 18:57:34 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/General/setafk.js | 2 +- dashboard/routes/updates.js | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 dashboard/routes/updates.js diff --git a/commands/General/setafk.js b/commands/General/setafk.js index e9df0d4a..3956da76 100644 --- a/commands/General/setafk.js +++ b/commands/General/setafk.js @@ -35,7 +35,7 @@ class Setafk extends Command { const m = await message.success("general/setafk:SUCCESS", { reason, - prefix: data.guild.prefix + prefix: data.guild.prefix || "$" }); setTimeout(() => { diff --git a/dashboard/routes/updates.js b/dashboard/routes/updates.js deleted file mode 100644 index b806283b..00000000 --- a/dashboard/routes/updates.js +++ /dev/null @@ -1,19 +0,0 @@ -const express = require("express"), - router = express.Router(), - fs = require("fs"), - marked = require("marked"); - -router.get("/", function (req, res) { - var md = function (filename) { - return marked.parse(fs.readFileSync("./dashboard/views/docs/" + filename, "utf8")); - }; - - res.render("updates", { - user: req.userInfos, - translate: req.translate, - currentURL: `${req.client.config.dashboard.baseURL}/${req.originalUrl}`, - "md": md - }); -}); - -module.exports = router; \ No newline at end of file