New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jourloy/twapi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jourloy/twapi

Typescript client for Twitch API

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Twapi

NotReady

Description

Typescript client for Twitch API

Getting started

Install

$ npm i @jourloy/twapi@latest

Usage

Import
import {Twapi} from "./twapi";
Create class
const twapi = new Twapi(Username, OAuth, [Channels]);
  • Username - Username of bot
  • OAuth - token with scopes
  • Channels - Array of channels for join
ON

You can react on events through .twapiClient

twapi.twapiClient.on(`event`, opt => {});
Possible events
  • message. Contain channel name and message text
Possible commands
  • announce. Usage: twapi.announce(channel, text)
  • announceblue. Usage: twapi.announceblue(channel, text)
  • announcegreen. Usage: twapi.announcegreen(channel, text)
  • announceorange. Usage: twapi.announceorange(channel, text)
  • announcepurple. Usage: twapi.announcepurple(channel, text)

FAQs

Package last updated on 14 Jun 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc