-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyanbi.js
More file actions
24 lines (20 loc) · 683 Bytes
/
yanbi.js
File metadata and controls
24 lines (20 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Created by Mosh Mage on 11/25/2016.
*/
"use strict";
const IrcContext = require('./classes/irc-context.js');
const ModuleManager = require('./classes/module-manager.js');
class Yanbi {
constructor(onReady) {
try {
const IrcConfig = require('./config/irc.config.js');
const YanbiConfig = require('./config/yanbi.config.js');
this.yanbiConfig = YanbiConfig.options;
this.ircContext = new IrcContext(IrcConfig.options);
this.moduleManager = new ModuleManager(this.ircContext.events, this.yanbiConfig, onReady);
} catch (e) {
console.log(e);
}
}
}
module.exports = Yanbi;