Refactor and emotemodule init
This commit is contained in:
parent
28c7d2541e
commit
f1baf09002
|
@ -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": ""
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue