TTS: add slash command to speak

This commit is contained in:
Cohee
2023-11-09 02:57:40 +02:00
parent ca1c0e35b1
commit f2a96427a8
4 changed files with 87 additions and 35 deletions

View File

@ -82,7 +82,8 @@ class SlashCommandParser {
if (equalsIndex !== -1) {
const key = arg.substring(0, equalsIndex);
const value = arg.substring(equalsIndex + 1);
argObj[key] = value;
// Replace "wrapping quotes" used for escaping spaces
argObj[key] = value.replace(/(^")|("$)/g, '');
}
else {
break;