From 8cffa16ca6b3d09dc4a7b84bf10f6b6616dcef16 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 16 May 2021 11:37:00 +0200 Subject: [PATCH] remove shaChat --- Main.js | 4 ++-- cmds/fun/chat.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Main.js b/Main.js index 7bee20c..a5678a6 100644 --- a/Main.js +++ b/Main.js @@ -9,7 +9,7 @@ const sqlite = require('sqlite'); let configFile = require('./config.json'); const { errLog, trySend } = require('./resources/functions'); const { join } = require('path'); -const { chatAnswer } = require("./resources/shaChat"); +// const { chatAnswer } = require("./resources/shaChat"); require("./database/mongo"); client.registry @@ -42,7 +42,7 @@ client.on('ready', async () => { client.on("message", async msg => { if (msg.channel.id === "837178237322919966" && !msg.author.bot && !msg.content.toLowerCase().startsWith(client.commandPrefix+"chat")) { - chatAnswer(client, msg); + // chatAnswer(client, msg); } if (!msg.guild) { diff --git a/cmds/fun/chat.js b/cmds/fun/chat.js index 15c8a4b..a0533a9 100644 --- a/cmds/fun/chat.js +++ b/cmds/fun/chat.js @@ -1,7 +1,7 @@ 'use strict'; const commando = require("@iceprod/discord.js-commando"); -const { chatAnswer } = require("../../resources/shaChat"); +// const { chatAnswer } = require("../../resources/shaChat"); module.exports = class chat extends commando.Command { constructor(client) { @@ -13,6 +13,7 @@ module.exports = class chat extends commando.Command { }); } async run(msg) { - chatAnswer(this.client, msg); + return "Chat is currently unavailable."; + // chatAnswer(this.client, msg); } }; \ No newline at end of file