forked from Supositware/Haha-Yes
work pls
This commit is contained in:
parent
41eed9fef2
commit
2be2a9cbb3
1 changed files with 1 additions and 6 deletions
|
@ -65,11 +65,6 @@ module.exports = class ttsvcCommand extends Command {
|
||||||
} else
|
} else
|
||||||
voiceChannel.join().then(connection => {
|
voiceChannel.join().then(connection => {
|
||||||
const dispatcher = connection.playStream('./tts.mp3');
|
const dispatcher = connection.playStream('./tts.mp3');
|
||||||
// End at then end of the audio stream
|
|
||||||
dispatcher.on('end', () => setTimeout(function(){
|
|
||||||
voiceChannel.leave();
|
|
||||||
}, 2000));
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}}
|
})}}
|
Loading…
Reference in a new issue