Redid structure

This commit is contained in:
plane000
2018-10-16 19:14:59 +01:00
parent f69743b0ba
commit a92750d1df
5 changed files with 23 additions and 36 deletions

View File

@@ -1,14 +0,0 @@
const fs = require('fs');
module.exports = class Config {
constructor(path) {
this.path = path;
this.Config = { };
}
load() {
if (fs.existsSync(this.path)) {
}
}
}

View File

@@ -1,22 +1 @@
const Logger = require('./logger');
const Config = require('./config');
// const Discord = require('discord.js');
// const client = new Discord.Client();
Logger.init();
Logger.SetLevel(Logger.VERBOSE_LOGS);
let config = new Config('./config/config.json');
config.load();
// client.on('ready', () => {
// console.log(`Logged in as ${client.user.tag}!`);
// });
// client.on('message', msg => {
// if (msg.content === 'ping') {
// msg.reply('Pong!');
// }
// });
// client.login('token');
require('./src/index');

0
src/events.js Normal file
View File

22
src/index.js Normal file
View File

@@ -0,0 +1,22 @@
const Logger = require('./logger');
const Config = require('./config');
const Discord = require('discord.js');
const client = new Discord.Client();
Logger.init();
Logger.SetLevel(Logger.VERBOSE_LOGS);
let config = new Config('./config/config.json');
config.load();
// client.on('ready', () => {
// console.log(`Logged in as ${client.user.tag}!`);
// });
// client.on('message', msg => {
// if (msg.content === 'ping') {
// msg.reply('Pong!');
// }
// });
// client.login('token');