Group.Added{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "GroupEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"groupId": {
"type": [
"null",
"string"
]
},
"groupName": {
"type": [
"null",
"string"
]
},
"groupBots": {
"type": "boolean"
}
}
}
{
"groupBots": false,
"groupId": "non Duis",
"groupName": null
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Group.Added" events and register a callback
client.on('Group.Added', ({ 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);
});