Added discord methods in events.js and renamed some variables in config then adapted the code around that. Redid date structures in Logger
This commit is contained in:
11
src/index.js
11
src/index.js
@@ -3,8 +3,7 @@ import Discord from 'discord.js';
|
||||
import {Logger} from './logger';
|
||||
import {Config} from './config';
|
||||
import {Database} from './database/database';
|
||||
|
||||
let client;
|
||||
import {Events} from './events';
|
||||
|
||||
init();
|
||||
async function init() {
|
||||
@@ -15,8 +14,10 @@ async function init() {
|
||||
config.load();
|
||||
|
||||
await Database.init();
|
||||
Logger.debug(JSON.stringify(await Database.Guilds.newGuild(1234, "Hello"), null, 4));
|
||||
Logger.debug(JSON.stringify(await Database.Guilds.deleteGuild(1234), null, 4));
|
||||
// Logger.debug(JSON.stringify(await Database.Guilds.newGuild(1234, "Hello"), null, 4));
|
||||
// Logger.debug(JSON.stringify(await Database.Guilds.deleteGuild(1234), null, 4));
|
||||
|
||||
client = new Discord.Client();
|
||||
const client = new Discord.Client();
|
||||
const eventHandler = new Events(client);
|
||||
eventHandler.handle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user