remove url encoding

This commit is contained in:
loicbersier 2019-07-18 00:08:01 +02:00
parent ae01c51473
commit ae264aa661

View file

@ -29,7 +29,6 @@ class dectalkvcCommand extends Command {
async exec(message, args) { async exec(message, args) {
args.decMessage = rand.random(args.decMessage, message); args.decMessage = rand.random(args.decMessage, message);
args.decMessage = args.decMessage.replace('\n', ' '); args.decMessage = args.decMessage.replace('\n', ' ');
args.decMessage = encodeURI(args.decMessage);
if (process.platform == 'win32') { if (process.platform == 'win32') {
exec(`cd .\\dectalk && .\\say.exe -w dectalkvc.wav "${args.decMessage}"`) exec(`cd .\\dectalk && .\\say.exe -w dectalkvc.wav "${args.decMessage}"`)