Custom.Event{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "CustomTrigger",
"type": "object",
"additionalProperties": false,
"properties": {
"eventName": {
"type": [
"null",
"string"
]
},
"useArgs": {
"type": "boolean"
},
"args": {
"type": [
"null",
"object"
],
"additionalProperties": {}
}
}
}
{
"args": {
"elitd1c": {},
"sed7": {}
},
"eventName": "consequat incididunt",
"useArgs": false
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Custom.Event" events and register a callback
client.on('Custom.Event', ({ 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);
});