mirror of
https://github.com/RavenX8/companion-module-voicemod.git
synced 2026-04-03 12:58:52 -04:00
Updated package and manifest
Updated voicemod api to latest Ran formatter on code
This commit is contained in:
@@ -5,14 +5,12 @@
|
||||
"description": "Voicemod control at your fingertips",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT",
|
||||
"repository": "git+https://github.com/bitfocus/companion-module-voicemod.git",
|
||||
"bugs": "https://github.com/bitfocus/companion-module-voicemod/issues",
|
||||
"repository": "git+https://github.com/bitfocus/companion-module-voicemod-api.git",
|
||||
"bugs": "https://github.com/bitfocus/companion-module-voicemod-api/issues",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "Your name",
|
||||
"email": "Your email"
|
||||
"name": "RavenX8",
|
||||
"email": "redflames1003@gmail.com"
|
||||
}
|
||||
],
|
||||
"runtime": {
|
||||
|
||||
90
main.js
90
main.js
@@ -11,11 +11,11 @@ class ModuleInstance extends InstanceBase {
|
||||
|
||||
this.config = {}
|
||||
this.memes = []
|
||||
this.backgroundEffectsEnabled = false;
|
||||
this.voiceChangerEnabled = false;
|
||||
this.hearMyVoiceEnabled = false;
|
||||
this.muteEnabled = false;
|
||||
this.muteMemesEnabled = false;
|
||||
this.backgroundEffectsEnabled = false
|
||||
this.voiceChangerEnabled = false
|
||||
this.hearMyVoiceEnabled = false
|
||||
this.muteEnabled = false
|
||||
this.muteMemesEnabled = false
|
||||
}
|
||||
|
||||
async init(config) {
|
||||
@@ -27,46 +27,46 @@ class ModuleInstance extends InstanceBase {
|
||||
try {
|
||||
this.vm.init().then(
|
||||
async () => {
|
||||
this.vm.internal.on('backgroundEffectsEnabledEvent', ( background ) => {
|
||||
this.backgroundEffectsEnabled = true;
|
||||
this.checkFeedbacks('BackgroundEffectState');
|
||||
});
|
||||
this.vm.internal.on('backgroundEffectsDisabledEvent', ( background ) => {
|
||||
this.backgroundEffectsEnabled = false;
|
||||
this.checkFeedbacks('BackgroundEffectState');
|
||||
});
|
||||
this.vm.internal.on('voiceChangerEnabledEvent', ( data ) => {
|
||||
this.voiceChangerEnabled = true;
|
||||
this.checkFeedbacks('VoiceChangerState');
|
||||
});
|
||||
this.vm.internal.on('voiceChangerDisabledEvent', ( data ) => {
|
||||
this.voiceChangerEnabled = false;
|
||||
this.checkFeedbacks('VoiceChangerState');
|
||||
});
|
||||
this.vm.internal.on('hearMySelfEnabledEvent', ( data ) => {
|
||||
this.hearMyVoiceEnabled = true;
|
||||
this.checkFeedbacks('HearMyVoiceState');
|
||||
});
|
||||
this.vm.internal.on('hearMySelfDisabledEvent', ( data ) => {
|
||||
this.hearMyVoiceEnabled = false;
|
||||
this.checkFeedbacks('HearMyVoiceState');
|
||||
});
|
||||
this.vm.internal.on('muteMicrophoneEnabledEvent', ( data ) => {
|
||||
this.muteEnabled = true;
|
||||
this.checkFeedbacks('MicMutedState');
|
||||
});
|
||||
this.vm.internal.on('muteMicrophoneDisabledEvent', ( data ) => {
|
||||
this.muteEnabled = false;
|
||||
this.checkFeedbacks('MicMutedState');
|
||||
});
|
||||
this.vm.internal.on('muteMemeForMeEnabledEvent', ( data ) => {
|
||||
this.muteMemesEnabled = true;
|
||||
this.checkFeedbacks('MemesMutedForMeState');
|
||||
});
|
||||
this.vm.internal.on('muteMemeForMeDisabledEvent', ( data ) => {
|
||||
this.muteMemesEnabled = false;
|
||||
this.checkFeedbacks('MemesMutedForMeState');
|
||||
});
|
||||
this.vm.internal.on('backgroundEffectsEnabledEvent', (background) => {
|
||||
this.backgroundEffectsEnabled = true
|
||||
this.checkFeedbacks('BackgroundEffectState')
|
||||
})
|
||||
this.vm.internal.on('backgroundEffectsDisabledEvent', (background) => {
|
||||
this.backgroundEffectsEnabled = false
|
||||
this.checkFeedbacks('BackgroundEffectState')
|
||||
})
|
||||
this.vm.internal.on('voiceChangerEnabledEvent', (data) => {
|
||||
this.voiceChangerEnabled = true
|
||||
this.checkFeedbacks('VoiceChangerState')
|
||||
})
|
||||
this.vm.internal.on('voiceChangerDisabledEvent', (data) => {
|
||||
this.voiceChangerEnabled = false
|
||||
this.checkFeedbacks('VoiceChangerState')
|
||||
})
|
||||
this.vm.internal.on('hearMySelfEnabledEvent', (data) => {
|
||||
this.hearMyVoiceEnabled = true
|
||||
this.checkFeedbacks('HearMyVoiceState')
|
||||
})
|
||||
this.vm.internal.on('hearMySelfDisabledEvent', (data) => {
|
||||
this.hearMyVoiceEnabled = false
|
||||
this.checkFeedbacks('HearMyVoiceState')
|
||||
})
|
||||
this.vm.internal.on('muteMicrophoneEnabledEvent', (data) => {
|
||||
this.muteEnabled = true
|
||||
this.checkFeedbacks('MicMutedState')
|
||||
})
|
||||
this.vm.internal.on('muteMicrophoneDisabledEvent', (data) => {
|
||||
this.muteEnabled = false
|
||||
this.checkFeedbacks('MicMutedState')
|
||||
})
|
||||
this.vm.internal.on('muteMemeForMeEnabledEvent', (data) => {
|
||||
this.muteMemesEnabled = true
|
||||
this.checkFeedbacks('MemesMutedForMeState')
|
||||
})
|
||||
this.vm.internal.on('muteMemeForMeDisabledEvent', (data) => {
|
||||
this.muteMemesEnabled = false
|
||||
this.checkFeedbacks('MemesMutedForMeState')
|
||||
})
|
||||
this.vm.internal.getVoiceChangerStatus()
|
||||
this.vm.internal.getBackgroundEffectStatus()
|
||||
this.vm.internal.getMuteMicStatus()
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@companion-module/base": "~1.5.1",
|
||||
"voicemod": "^0.1.5",
|
||||
"ws": "^8.14.2"
|
||||
"voicemod": "^0.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@companion-module/tools": "^1.4.1"
|
||||
|
||||
Reference in New Issue
Block a user