-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Constants.js
31 lines (31 loc) · 1.23 KB
/
Constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
Twitch: {
CDN: (id, size) => `https://static-cdn.jtvnw.net/emoticons/v2/${id}/default/dark/${size + 1}.0`
},
BTTV: {
Global: 'https://api.betterttv.net/3/cached/emotes/global',
Channel: id => `https://api.betterttv.net/3/cached/users/twitch/${id}`,
CDN: (id, size) => `https://cdn.betterttv.net/emote/${id}/${size + 1}x.webp`
},
SevenTV: {
Global: 'https://7tv.io/v3/emote-sets/global',
Channel: id => `https://7tv.io/v3/users/twitch/${id}`,
CDN: (id, size) => `https://cdn.7tv.app/emote/${id}/${size}`
},
FFZ: {
sets: {
Global: 3,
Modifiers: 1532818
},
Set: id => `https://api.frankerfacez.com/v1/set/${id}`,
Channel: id => `https://api.frankerfacez.com/v1/room/id/${id}`,
CDN: (id, size) => `https://cdn.frankerfacez.com/emote/${id}/${size}`,
CDNAnimated: (id, size) => `https://cdn.frankerfacez.com/emote/${id}/animated/${size}.webp`
},
Templates: {
html: '<img alt="{name}" title="{name}" class="twitch-emote twitch-emote-{size}" src="{link}">',
markdown: '![{name}]({link} "{name}")',
bbcode: '[img]{link}[/img]',
plain: '{link}'
}
};