diff --git a/Main.js b/Main.js index 6317c62..fe66c00 100644 --- a/Main.js +++ b/Main.js @@ -11,7 +11,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"); const { timestampAt } = require("./resources/debug"); client.registry @@ -46,14 +46,14 @@ client.on("message", async msg => { } if (msg.author.dbLoaded === false && !msg.author.bot) { await msg.author.dbLoad(); - } + }/* if (msg.channel.id === "837178237322919966" && !msg.author.bot && !msg.content.toLowerCase().startsWith(client.commandPrefix+"chat")) { chatAnswer(client, msg); } if (!msg.guild) { console.log(`(${msg.channel.recipient.id}) ${msg.channel.recipient.tag}: (${msg.author.id}) ${msg.author.tag}: ${msg.content}`); - } + } */ }); client.on("guildMemberRemove", memberLeave => { @@ -78,6 +78,6 @@ process.on("uncaughtException", e => errLog(e, null, client)); process.on("unhandledRejection", e => errLog(e, null, client)); process.on("warning", e => errLog(e, null, client)); -client.on("debug", (...args) => console.log(...args, timestampAt())); +//client.on("debug", (...args) => console.log(...args, timestampAt())); client.login(configFile.token); \ No newline at end of file diff --git a/cmds/fun/chat.js b/cmds/fun/chat.js index 15c8a4b..55554c0 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,6 @@ module.exports = class chat extends commando.Command { }); } async run(msg) { - chatAnswer(this.client, msg); + //chatAnswer(this.client, msg); } }; \ No newline at end of file