mirror of
https://github.com/danbulant/Shasha
synced 2026-07-05 02:50:49 +00:00
remove shaChat
This commit is contained in:
parent
65496b0554
commit
8cffa16ca6
2 changed files with 5 additions and 4 deletions
4
Main.js
4
Main.js
|
|
@ -9,7 +9,7 @@ const sqlite = require('sqlite');
|
||||||
let configFile = require('./config.json');
|
let configFile = require('./config.json');
|
||||||
const { errLog, trySend } = require('./resources/functions');
|
const { errLog, trySend } = require('./resources/functions');
|
||||||
const { join } = require('path');
|
const { join } = require('path');
|
||||||
const { chatAnswer } = require("./resources/shaChat");
|
// const { chatAnswer } = require("./resources/shaChat");
|
||||||
require("./database/mongo");
|
require("./database/mongo");
|
||||||
|
|
||||||
client.registry
|
client.registry
|
||||||
|
|
@ -42,7 +42,7 @@ client.on('ready', async () => {
|
||||||
|
|
||||||
client.on("message", async msg => {
|
client.on("message", async msg => {
|
||||||
if (msg.channel.id === "837178237322919966" && !msg.author.bot && !msg.content.toLowerCase().startsWith(client.commandPrefix+"chat")) {
|
if (msg.channel.id === "837178237322919966" && !msg.author.bot && !msg.content.toLowerCase().startsWith(client.commandPrefix+"chat")) {
|
||||||
chatAnswer(client, msg);
|
// chatAnswer(client, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!msg.guild) {
|
if (!msg.guild) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const commando = require("@iceprod/discord.js-commando");
|
const commando = require("@iceprod/discord.js-commando");
|
||||||
const { chatAnswer } = require("../../resources/shaChat");
|
// const { chatAnswer } = require("../../resources/shaChat");
|
||||||
|
|
||||||
module.exports = class chat extends commando.Command {
|
module.exports = class chat extends commando.Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
|
|
@ -13,6 +13,7 @@ module.exports = class chat extends commando.Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
chatAnswer(this.client, msg);
|
return "Chat is currently unavailable.";
|
||||||
|
// chatAnswer(this.client, msg);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in a new issue