k9/main.js
2019-08-21 15:32:25 -07:00

20 lines
466 B
JavaScript

"use strict";
const fs = require('fs');
const Discord = require("discord.js");
const Setup = require("./src/Setup.js");
const Commands = require("./src/Commands.js");
const Leveller = require("./src/Leveller.js");
const discord = new Discord.Client();
const raw = fs.readFileSync('./data/conf.json');
const self = JSON.parse(raw);
const setup = new Setup(discord, self);
setup.init().then(() => {
new Commands(discord, self);
new Leveller(discord, self);
});