diff --git a/src/nodes/ts3-config/ts3-config.html b/src/nodes/ts3-config/ts3-config.html
index e48f4aa..4f2c3de 100644
--- a/src/nodes/ts3-config/ts3-config.html
+++ b/src/nodes/ts3-config/ts3-config.html
@@ -4,7 +4,8 @@
color: '#a6bbcf',
defaults: {
host: { value: ""},
- nickname: {value: "ServerQuery"}
+ nickname: {value: "ServerQuery"},
+ name: {value: ""}
},
credentials: {
username: {type: "text"},
@@ -18,19 +19,23 @@
diff --git a/src/nodes/ts3-config/ts3-config.ts b/src/nodes/ts3-config/ts3-config.ts
index a426f73..58db012 100644
--- a/src/nodes/ts3-config/ts3-config.ts
+++ b/src/nodes/ts3-config/ts3-config.ts
@@ -12,6 +12,8 @@ const nodeInit: NodeInitializer = (RED): void => {
const host = config.host
const nickname = config.nickname
+ this.name = config.name
+
let client: TeamSpeak | null = null
let connectPromise: Promise | null = null
let shouldDissconect = false
diff --git a/src/nodes/ts3-config/types.ts b/src/nodes/ts3-config/types.ts
index 03a2849..37ac0c2 100644
--- a/src/nodes/ts3-config/types.ts
+++ b/src/nodes/ts3-config/types.ts
@@ -2,12 +2,13 @@ import { NodeDef, Node } from "node-red";
import { TeamSpeak } from "ts3-nodejs-library"
export interface Ts3ConfigProps{
- host: string,
+ host: string
nickname: string
+ name: string
}
export interface Ts3ConfigCreds {
- username: string,
+ username: string
password: string
}