thaldrin/DiscordEvents/MessageEconomy.js

25 lines
576 B
JavaScript
Raw Normal View History

2019-12-27 17:11:56 +00:00
const {
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;
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)
}
}