Misc.TimedAction{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "TimedActionEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "guid"
},
"name": {
"type": [
"null",
"string"
]
},
"counter": {
"type": "integer",
"format": "int32"
}
}
}
{
"counter": -21147695,
"id": "92df01df-e812-48fa-ae69-669ba3d8526d",
"name": "elit enim cupidatat id"
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Misc.TimedAction" events and register a callback
client.on('Misc.TimedAction', ({ event, data }) => {
// Code here will run every time the event is received!
console.log('Received event:', event.source, event.type);
console.log('Event data:', data);
});