2019-12-27 17:11:56 +00:00
|
|
|
const {
|
2020-01-03 16:27:32 +00:00
|
|
|
eco,
|
|
|
|
db
|
2019-12-27 17:11:56 +00:00
|
|
|
} = require("../utils");
|
|
|
|
const {
|
|
|
|
table
|
|
|
|
} = require("quick.db");
|
|
|
|
const Servers = new table("servers");
|
|
|
|
const Users = new table("users");
|
|
|
|
const Backend = new table("backend");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: "message",
|
|
|
|
run: async (client, Message) => {
|
|
|
|
if (Message.author.bot) return;
|
|
|
|
if (!Message.guild) return;
|
|
|
|
if (Message.author.id !== '318044130796109825') return;
|
2020-01-03 16:27:32 +00:00
|
|
|
|
|
|
|
let UserFromDB = await db.blacklist(Message.author.id, 's')
|
|
|
|
if (UserFromDB.state) return;
|
|
|
|
|
2019-12-27 17:11:56 +00:00
|
|
|
await eco.CalculateFromMessage(Message)
|
|
|
|
// console.log(Message)
|
|
|
|
}
|
|
|
|
}
|