From 0e6d8f9c8bc823502733f5e37122866297c28a24 Mon Sep 17 00:00:00 2001 From: raven <7156279+RavenX8@users.noreply.github.com> Date: Sun, 18 May 2025 18:31:34 -0400 Subject: [PATCH] Added api key input --- main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 213ec03..e99f264 100644 --- a/main.js +++ b/main.js @@ -33,7 +33,7 @@ class ModuleInstance extends InstanceBase { do { this.updateStatus(InstanceStatus.Connecting) - this.vm = new VoiceMod(this.config.host, 'controlapi-pty528000') + this.vm = new VoiceMod(this.config.host, this.config.apiKey === '' ? 'anyClient' : this.config.apiKey) try { await this.vm.init().then( async () => { @@ -154,6 +154,13 @@ class ModuleInstance extends InstanceBase { tooltip: 'Enter the IP/Hostname for the voicemod instance', default: '127.0.0.1', }, + { + id: 'apiKey', + type: 'textinput', + label: 'API Key', + tooltip: 'Enter your API Key for voicemod (https://control-api.voicemod.net)', + default: '', + }, ] }