This commit is contained in:
Daniel Odendahl Jr
2018-04-24 23:04:31 +00:00
parent 54bd5dd1c0
commit 2816e03904
+1 -1
View File
@@ -36,7 +36,7 @@ module.exports = class DECTalkCommand extends Command {
try {
const connection = await channel.join();
const data = await snekfetch
.get('http://tts.cyzon.us/tts', { followRedirects: false })
.get('http://tts.cyzon.us/tts', { redirects: false })
.query({ text });
const dispatcher = connection.play(`http://tts.cyzon.us${data.headers.location}`);
dispatcher.once('finish', () => channel.leave());