eventsub-debugger

command module
v0.0.0-...-4a4a969 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

eventsub-debugger

A simple Twitch EventSub Websocket client for testing and debugging a single subscription.

The tool connects to the EventSub gateway, creates your subscription, and prints all messages received. Stop the tool with Ctrl+C.

Usage

Usage of eventsub-debugger:
  -client-id string
    	Twitch Application ClientID
  -condition string
    	JSON Condition to pass
  -server string
    	Twitch EventSub WebSocket endpoint (default "wss://eventsub.wss.twitch.tv/ws")
  -sub-type string
    	EventSub Subscription Type
  -sub-version string
    	EventSub Subscription Version
  -token string
    	Twitch OAuth Access Token

Example (channel.chat.message)

First, generate an access token to read the chat: twitch token -u -s "user:read:chat". Then, specify the chat to connect to and your user id in the condition:

$ eventsub-debugger \
      --client-id "<your client id>" \
      --token "<your access token>" \
      --sub-type "channel.chat.message" \
      --sub-version "1" \
      --condition '{ "broadcaster_user_id": "22484632", "user_id": "<your user id>" }'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL