diff --git a/cmds/fun/chat.js b/cmds/fun/chat.js index 72512fb..a0533a9 100644 --- a/cmds/fun/chat.js +++ b/cmds/fun/chat.js @@ -1,8 +1,7 @@ 'use strict'; const commando = require("@iceprod/discord.js-commando"); -const { trySend } = require("../../resources/functions"); -const { chatAnswer } = require("../../resources/shaChat"); +// const { chatAnswer } = require("../../resources/shaChat"); module.exports = class chat extends commando.Command { constructor(client) { @@ -13,12 +12,8 @@ module.exports = class chat extends commando.Command { description: "Lets chat!" }); } - async run(msg, args) { - if (!args) { - return trySend(msg.client, msg, "Ask me somethin?"); - } - msg.channel.startTyping(); - return trySend(this.client, msg, await chatAnswer( - msg.cleanContent.slice((msg.guild.commandPrefix + msg.alias).length + 1).trim())); + async run(msg) { + return "Chat is currently unavailable."; + // chatAnswer(this.client, msg); } }; \ No newline at end of file diff --git a/database/mongo.js b/database/mongo.js index 5b36a2b..564b7f2 100644 --- a/database/mongo.js +++ b/database/mongo.js @@ -15,4 +15,7 @@ dbClient.connect(e => { const database = dbClient.db("Shasha"); -module.exports = { dbClient, database } \ No newline at end of file +/** + * @type {dbClient: MongoClient, database: Db} + */ +module.exports = { dbClient, database }