@skyra/twitch-helpers
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@skyra/twitch-helpers

Very basic Twitch helper functions for several ArchId bots to ensure we do not duplicate code.

Features

  • Powered by the @skyra/safe-fetch package

Usage

First of all, you should make sure to define the following environment variables for your process:

  • TWITCH_CLIENT_ID: The Client ID of your Twitch application (generated at Twitch Dev Console)
  • TWITCH_CLIENT_SECRET: The Client Secret from your Twitch application (generated at Twitch Dev Console)
  • TWITCH_EVENT_SUB_CALLBACK: A public HTTP callback URL that can be used for the Twitch EventSub
  • TWITCH_EVENT_SUB_SECRET: A unique secret key that is sent to the EventSub system and returned by Twitch then used to validate whether a request is from Twitch or not.

After this, you can use the functions exported from this package to interact with the Twitch API.

/@skyra/twitch-helpers/

    Package Sidebar

    Install

    npm i @skyra/twitch-helpers

    Weekly Downloads

    25

    Version

    2.0.1

    License

    Apache-2.0

    Unpacked Size

    81.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • favna
    • kyranet