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:
33
feedbacks.js
Normal file
33
feedbacks.js
Normal file
@@ -0,0 +1,33 @@
|
||||
const { combineRgb } = require('@companion-module/base')
|
||||
|
||||
module.exports = async function (self) {
|
||||
self.setFeedbackDefinitions({
|
||||
ChannelState: {
|
||||
name: 'Example Feedback',
|
||||
type: 'boolean',
|
||||
label: 'Channel State',
|
||||
defaultStyle: {
|
||||
bgcolor: combineRgb(255, 0, 0),
|
||||
color: combineRgb(0, 0, 0),
|
||||
},
|
||||
options: [
|
||||
{
|
||||
id: 'num',
|
||||
type: 'number',
|
||||
label: 'Test',
|
||||
default: 5,
|
||||
min: 0,
|
||||
max: 10,
|
||||
},
|
||||
],
|
||||
callback: (feedback) => {
|
||||
console.log('Hello world!', feedback.options.num)
|
||||
if (feedback.options.num > 5) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user