diff --git a/package-lock.json b/package-lock.json index ea8a4457f..fb027e06a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,7 +45,8 @@ }, "devDependencies": { "pkg": "^5.8.1", - "pkg-fetch": "^3.5.2" + "pkg-fetch": "^3.5.2", + "toastr": "^2.1.4" } }, "node_modules/@babel/generator": { @@ -3031,6 +3032,15 @@ "node": ">=8.0" } }, + "node_modules/toastr": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/toastr/-/toastr-2.1.4.tgz", + "integrity": "sha512-LIy77F5n+sz4tefMmFOntcJ6HL0Fv3k1TDnNmFZ0bU/GcvIIfy6eG2v7zQmMiYgaalAiUv75ttFrPn5s0gyqlA==", + "dev": true, + "dependencies": { + "jquery": ">=1.12.0" + } + }, "node_modules/toidentifier": { "version": "1.0.1", "license": "MIT", diff --git a/package.json b/package.json index 48bbccd0f..49548b351 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ }, "devDependencies": { "pkg": "^5.8.1", - "pkg-fetch": "^3.5.2" + "pkg-fetch": "^3.5.2", + "toastr": "^2.1.4" } } diff --git a/public/index.html b/public/index.html index bc910b326..c051c3df8 100644 --- a/public/index.html +++ b/public/index.html @@ -2577,6 +2577,15 @@
+ + \ No newline at end of file diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 48704b01e..74921c77b 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -88,7 +88,9 @@ const NARRATOR_NAME_KEY = 'narrator_name'; const NARRATOR_NAME_DEFAULT = 'System'; function setNarratorName(_, text) { - chat_metadata[NARRATOR_NAME_KEY] = text || NARRATOR_NAME_DEFAULT; + const name = text || NARRATOR_NAME_DEFAULT; + chat_metadata[NARRATOR_NAME_KEY] = name; + toastr.info(`System narrator name set to ${name}`); saveChatConditional(); }