Files
companion-module-streamer.b…/actions.js
2024-01-25 17:13:10 -05:00

21 lines
346 B
JavaScript

module.exports = function (self) {
self.setActionDefinitions({
sample_action: {
name: 'My First Action',
options: [
{
id: 'num',
type: 'number',
label: 'Test',
default: 5,
min: 0,
max: 100,
},
],
callback: async (event) => {
console.log('Hello world!', event.options.num)
},
},
})
}