use gitcdn

This commit is contained in:
Zack Rauen 2020-07-27 14:52:05 -04:00
parent 4a2e910077
commit 2f8e82f818
1 changed files with 6 additions and 6 deletions

View File

@ -23,31 +23,31 @@ EmoteModule.prototype.init = async function () {
const emoteInfo = { const emoteInfo = {
TwitchGlobal: { TwitchGlobal: {
url: `https://betterdiscord.zerebos.com/assets/emotedata_twitch_global.json`, url: `https://gitcdn.xyz/repo/rauenzi/BetterDiscordApp/gh-pages/assets/emotedata_twitch_global.json`,
variable: "TwitchGlobal", variable: "TwitchGlobal",
oldVariable: "emotesTwitch", oldVariable: "emotesTwitch",
getEmoteURL: (e) => `https://static-cdn.jtvnw.net/emoticons/v1/${e}/1.0` getEmoteURL: (e) => `https://static-cdn.jtvnw.net/emoticons/v1/${e}/1.0`
}, },
TwitchSubscriber: { TwitchSubscriber: {
url: `https://betterdiscord.zerebos.com/assets/emotedata_twitch_subscriber.json`, url: `https://gitcdn.xyz/repo/rauenzi/BetterDiscordApp/gh-pages/assets/emotedata_twitch_subscriber.json`,
variable: "TwitchSubscriber", variable: "TwitchSubscriber",
oldVariable: "subEmotesTwitch", oldVariable: "subEmotesTwitch",
getEmoteURL: (e) => `https://static-cdn.jtvnw.net/emoticons/v1/${e}/1.0` getEmoteURL: (e) => `https://static-cdn.jtvnw.net/emoticons/v1/${e}/1.0`
}, },
FrankerFaceZ: { FrankerFaceZ: {
url: `https://betterdiscord.zerebos.com/assets/emotedata_ffz.json`, url: `https://gitcdn.xyz/repo/rauenzi/BetterDiscordApp/gh-pages/assets/emotedata_ffz.json`,
variable: "FrankerFaceZ", variable: "FrankerFaceZ",
oldVariable: "emotesFfz", oldVariable: "emotesFfz",
getEmoteURL: (e) => `https://cdn.frankerfacez.com/emoticon/${e}/1` getEmoteURL: (e) => `https://cdn.frankerfacez.com/emoticon/${e}/1`
}, },
BTTV: { BTTV: {
url: `https://betterdiscord.zerebos.com/assets/emotedata_bttv.json`, url: `https://gitcdn.xyz/repo/rauenzi/BetterDiscordApp/gh-pages/assets/emotedata_bttv.json`,
variable: "BTTV", variable: "BTTV",
oldVariable: "emotesBTTV", oldVariable: "emotesBTTV",
getEmoteURL: (e) => `https://cdn.betterttv.net/emote/${e}/1x` getEmoteURL: (e) => `https://cdn.betterttv.net/emote/${e}/1x`
}, },
BTTV2: { BTTV2: {
url: `https://betterdiscord.zerebos.com/assets/emotedata_bttv2.json`, url: `https://gitcdn.xyz/repo/rauenzi/BetterDiscordApp/gh-pages/assets/emotedata_bttv2.json`,
variable: "BTTV2", variable: "BTTV2",
oldVariable: "emotesBTTV2", oldVariable: "emotesBTTV2",
getEmoteURL: (e) => `https://cdn.betterttv.net/emote/${e}/1x` getEmoteURL: (e) => `https://cdn.betterttv.net/emote/${e}/1x`
@ -248,7 +248,7 @@ EmoteModule.prototype.downloadEmotes = function(emoteMeta) {
EmoteModule.prototype.getBlacklist = function () { EmoteModule.prototype.getBlacklist = function () {
return new Promise(resolve => { return new Promise(resolve => {
require("request").get({url: "https://betterdiscord.zerebos.com/assets/emotefilter.json", json: true}, function (err, resp, data) { require("request").get({url: "https://gitcdn.xyz/repo/rauenzi/BetterDiscordApp/gh-pages/assets/emotefilter.json", json: true}, function (err, resp, data) {
if (err) return resolve(bemotes); if (err) return resolve(bemotes);
resolve(bemotes.splice(0, 0, ...data.blacklist)); resolve(bemotes.splice(0, 0, ...data.blacklist));
}); });