mirror of
https://github.com/danbulant/Shasha
synced 2026-07-05 11:00:58 +00:00
disabled shaChat
This commit is contained in:
parent
3f3c94d2d5
commit
129e070cb8
2 changed files with 6 additions and 6 deletions
8
Main.js
8
Main.js
|
|
@ -11,7 +11,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");
|
||||||
const { timestampAt } = require("./resources/debug");
|
const { timestampAt } = require("./resources/debug");
|
||||||
|
|
||||||
client.registry
|
client.registry
|
||||||
|
|
@ -46,14 +46,14 @@ client.on("message", async msg => {
|
||||||
}
|
}
|
||||||
if (msg.author.dbLoaded === false && !msg.author.bot) {
|
if (msg.author.dbLoaded === false && !msg.author.bot) {
|
||||||
await msg.author.dbLoad();
|
await msg.author.dbLoad();
|
||||||
}
|
}/*
|
||||||
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) {
|
||||||
console.log(`(${msg.channel.recipient.id}) ${msg.channel.recipient.tag}: (${msg.author.id}) ${msg.author.tag}: ${msg.content}`);
|
console.log(`(${msg.channel.recipient.id}) ${msg.channel.recipient.tag}: (${msg.author.id}) ${msg.author.tag}: ${msg.content}`);
|
||||||
}
|
} */
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("guildMemberRemove", memberLeave => {
|
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("unhandledRejection", e => errLog(e, null, client));
|
||||||
process.on("warning", 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);
|
client.login(configFile.token);
|
||||||
|
|
@ -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,6 @@ module.exports = class chat extends commando.Command {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
async run(msg) {
|
async run(msg) {
|
||||||
chatAnswer(this.client, msg);
|
//chatAnswer(this.client, msg);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in a new issue