Daasin / twitch-fetcher

Fetch Twitch channel data and emotes (Includes BTTV, FFZ and 7TV)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitch Fetcher

Fetch for Twitch channel and Emotes. (Includes BTTV, FFZ and 7TV)

⭐ Features

  • Fetch for Twitch channel
  • Fetch for Twitch emotes
  • Fetch for BetterTTV emotes (Using bttv's API)
  • Fetch for FFZ emotes (Using ffz's API)
  • Fetch for 7TV emotes (Using my own unofficial GQL API for 7TV)

🌲 Get started

Initialize client

const TwitchFetcher = require("twitch-fetcher");

var fetcher = new TwitchFetcher({
    clientId: "01234abcde",
    OAuth: "56789fghij"
});

Using as ES Module

import TwitchFetcher from "twitch-fetcher";

let fetcher = new TwitchFetcher({
    clientId: "01234abcde",
    OAuth: "56789fghij"
});

📖 Documentation

Fetch 7TV Emotes

// By username
await fetcher.getEmotesByName("sammwy", {"7tv": true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {"7tv": true});

Fetch BTTV Emotes

// By username
await fetcher.getEmotesByName("sammwy", {bttv: true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {bttv: true});

Fetch FFZ Emotes

// By username
await fetcher.getEmotesByName("sammwy", {ffz: true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {ffz: true});

Fetch Twitch Emotes

// By username
await fetcher.getEmotesByName("sammwy", {twitch: true});

// By ID
await fetcher.getEmotesByID("0123456abcdefg", {twitch: true});

Fetch Twitch User

// By username
await fetcher.getUserData({username: "sammwy"});

// By ID
await fetcher.getUserData({id: "0123456abcdefg"});

❤️ Donate

Support all EnhancedTwitch's projects making a Donation in PayPal, Ko-fi or Patreon

About

Fetch Twitch channel data and emotes (Includes BTTV, FFZ and 7TV)


Languages

Language:JavaScript 100.0%