Fix DECTalk

This commit is contained in:
Daniel Odendahl Jr
2018-05-22 13:51:22 +00:00
parent 9066eacde8
commit 0d965edc42
2 changed files with 2 additions and 2 deletions
+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', { redirects: false })
.get('http://tts.cyzon.us/tts', { redirect: false })
.query({ text });
const dispatcher = connection.play(`http://tts.cyzon.us${data.headers.location}`);
dispatcher.once('finish', () => channel.leave());