thaldrin/DiscordEvents/SourceFynnderMessage.js

22 lines
597 B
JavaScript
Raw Normal View History

2019-10-14 11:19:41 +00:00
const { log, db } = require("../utils/index");
const { SourceFynnder } = 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;
let Server = Servers.get(Message.guild.id);
let Enabled;
if (Server === null) {
Enabled = db.defaults.server.SourceFynnder;
} else {
Enabled = Server.SourceFynnder;
}
SourceFynnder(Enabled, Message);
}
};