Make voice return streamdispatcher

This commit is contained in:
Amish Shah
2016-12-28 21:40:11 +00:00
parent 4294d267e7
commit 00254f35b0
2 changed files with 1 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ class AudioPlayer extends EventEmitter {
if (this.listenerCount('error') > 0) this.emit('error', e);
else this.emit('warn', e);
});
this.playPCMStream(transcoder.output, options);
return this.playPCMStream(transcoder.output, options);
}
playPCMStream(stream, { seek = 0, volume = 1, passes = 1 } = {}) {

View File

@@ -10,8 +10,6 @@ const { email, password, token, usertoken, song } = require('./auth.json');
client.login(token).then(atoken => console.log('logged in with token ' + atoken)).catch(console.error);
client.ws.on('send', console.log);
client.on('ready', () => {
console.log('ready');
});