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

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