FileWatcher.Changed{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "FileChangeEvent",
"type": "object",
"additionalProperties": false,
"required": [
"fullPath",
"fileName"
],
"properties": {
"fullPath": {
"type": "string"
},
"fileName": {
"type": "string"
},
"lines": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"data": {
"type": [
"null",
"object"
],
"additionalProperties": {}
}
}
}
{
"data": {
"anim340": {},
"veniam_bb": {}
},
"fileName": "elit cillum aute pariatur Ut",
"fullPath": "Duis in consectetur quis",
"lines": [
"Excepteur adipisicing",
"adipisicing ut",
"veniam",
"ut magna veniam sed",
"ad"
]
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "FileWatcher.Changed" events and register a callback
client.on('FileWatcher.Changed', ({ 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);
});