Redid structure
This commit is contained in:
14
config.js
14
config.js
@@ -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)) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
23
index.js
23
index.js
@@ -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
0
src/events.js
Normal file
22
src/index.js
Normal file
22
src/index.js
Normal 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');
|
||||
Reference in New Issue
Block a user