Support TwitchEmote's v4 API, BTTV v3 API, upgrade deps
NOTE
This PR needs to be updated to drop TwitchEmote altogether as its API doesn't work anymore.
My fork now uses the Twitch API directly, instead.
Since this repo appears abandoned, I've published a package from my fork branch: @mkody/twitch-emoticons
The TwitchEmote v3 API got shut down. Same for BTTV v2.
I pretty much reused bits from the BTTV part for this.
Oh and also fixed the quotes in the html template.
BREAKING CHANGES: fetchTwitchEmotes takes the ID of the channel as a parameter instead of a string or array of strings with the channel name.
BREAKING CHANGES 2: fetchBTTVEmotes takes the ID of the channel as a parameter instead of a string of the channel name.
You should also use a Twitch ID for FFZ, but support for both is still available for now.
Some dependencies and dev-dependencies were updated too.
I think the lib is abandoned. Maybe you can upload the lib as another package?
I could look into that but in the meantime you can install from git which works well.
yarn add https://github.com/mkody/twitch-emoticons.git
@mkody May I adopt your fork as maintainer and upload to NPM? It would be very beneficial to other developers working with Twitch emotes on their sites.
I went and did it: https://www.npmjs.com/package/@mkody/twitch-emoticons