Refactor and emotemodule init

This commit is contained in:
Jiiks 2015-08-25 09:44:42 +03:00
parent 28c7d2541e
commit f1baf09002
3 changed files with 38 additions and 1 deletions

19
bda/config.json Normal file
View File

@ -0,0 +1,19 @@
{
"EmoteModule": {
"Twitch":{
"EmoteData": "emotedata_twitch.json",
"EmoteUrlStart": "https://static-cdn.jtvnw.net/emoticons/v1/",
"EmoteUrlEnd": "/1.0"
},
"FrankerFaceZ": {
"EmoteData": "emotedata_ffz.json",
"EmoteUrlStart": "https://cdn.frankerfacez.com/emoticon/",
"EmoteUrlEnd": "/1"
},
"BetterTTV": {
"EmoteData": "",
"EmoteUrlStart": "",
"EmoteUrlEnd": ""
}
}
}

View File

@ -5,7 +5,8 @@
* https://github.com/Jiiks/BetterDiscordApp
*/
var _helpers = require('./bda/helper.js');
var _helpers = require('./helper.js');
var _emoteModule = require('./modules/EmoteModule.js');
var _helper;
var _mainWindow;
var _version = "1.0.0";
@ -19,6 +20,8 @@ function BetterDiscordApp(mainWindow) {
function init() {
_helper.log("v" + _version + " initialized.");
_helper.injectStylesheet("https://raw.githubusercontent.com/Jiiks/BetterDiscordApp/master/css/main.css");
_emoteModule = new _emoteModule.EmoteModule(_helper);
}
exports.BetterDiscordApp = BetterDiscordApp;

View File

@ -0,0 +1,15 @@
/* BetterDiscordApp Emote Module aka TwitchCord
* Version: 1.0
* Author: Jiiks | http://jiiks.net
* Date: 25/08/2015 - 09:33
* https://github.com/Jiiks/BetterDiscordApp
*/
var _helper;
function EmoteModule(helper) {
_helper = helper;
_helper.log("Emotes Initialized");
}
exports.EmoteModule = EmoteModule;