Socket
Book a DemoInstallSign in
Socket

@skyra/twitch-helpers

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyra/twitch-helpers

Very basic Twitch helper functions used across several ArchId bots

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
80
17.65%
Maintainers
2
Weekly downloads
 
Created
Source

@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_CALLBACK: A public HTTP callback URL that can be used for the Twitch Event Sub
  • TWITCH_CLIENT_ID: The Client ID of your Twitch application (generated at Twitch Dev Console)
  • TWITCH_EVENTSUB_SECRET: A unique secret key that is send to the Event Sub system and returned by Twitch then used to validate whether a request is from Twitch or not.
  • TWITCH_TOKEN: The Client Secret from your Twitch application (generated at Twitch Dev Console)

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

Keywords

discord

FAQs

Package last updated on 24 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts