From cb6971a95e0efd46d97514983a8efd0db4b5b5e9 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 17 Jul 2019 23:36:41 +0200 Subject: [PATCH] work pls --- commands/fun/tts/dectalk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/tts/dectalk.js b/commands/fun/tts/dectalk.js index 857db7a0..86828b04 100644 --- a/commands/fun/tts/dectalk.js +++ b/commands/fun/tts/dectalk.js @@ -39,7 +39,7 @@ class dectalkCommand extends Command { return message.channel.send({files: ['./dectalk/dectalk.wav']}); }); } else if (process.platform == 'linux') { - exec(`cd dectalk && wine say.exe -w dectalk.wav "${args.decMessage}"`) + exec(`cd dectalk && DISPLAY=:0.0 wine say.exe -w dectalk.wav "${args.decMessage}"`) .catch(err => { return console.error(err); })