mirror of
https://github.com/RavenX8/companion-module-voicemod.git
synced 2026-04-03 12:58:52 -04:00
Initial commit
This commit is contained in:
20
actions.js
Normal file
20
actions.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user