BetterDiscordApp-v1/v2/src/js/core.js

50 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

/* BetterDiscordApp Client Core
* Version: 2:1.0
* Author: Jiiks | https://jiiks.net
* Date: 31/10/2016
* Last Update: 31/10/2016
* Github: https://github.com/Jiiks/BetterDiscordApp
* Git: https://github.com/Jiiks/BetterDiscordApp.git
* License: MIT
*/
define([
"./modules/modules",
"./utils",
2016-11-01 04:42:15 +01:00
"./api",
2016-11-02 06:38:32 +01:00
"./plugin",
2016-11-01 04:42:15 +01:00
"./event"
], (modules, utils, api, plugin, event) => {
class Core {
constructor(args) {
2016-11-04 05:49:51 +01:00
this.utils = utils;
2016-11-02 06:38:32 +01:00
this.event = event;
this.modules = modules;
this.beta = true;
this.alpha = true;
2016-11-01 04:42:15 +01:00
this.plugin = plugin;
}
init() {
2016-11-04 05:49:51 +01:00
utils.log(`${this.__versionString} Initializing`);
}
get __version() {
return "2.0.0";
}
get __versionString() {
return `${this.__version}${this.alpha ? "A" : this.beta ? "B" : ""}`;
}
}
window.$B = s => { return $(`[data-bd=${s}`); };
2016-11-02 06:38:32 +01:00
window.BD = new Core();
2016-11-01 04:42:15 +01:00
BD.init();
2016-11-02 06:38:32 +01:00
});