Minor fixes

This commit is contained in:
hydrabolt
2015-11-07 21:24:56 +00:00
parent fc31df3fcf
commit ae75c49621
9 changed files with 69 additions and 27 deletions

View File

@@ -31,7 +31,9 @@ a.on("message", function (m) {
var channel = _ref;
if (channel instanceof VoiceChannel) {
a.internal.joinVoiceChannel(channel)["catch"](error);
a.joinVoiceChannel(channel)["catch"](error).then(function (connection) {
connection.playFile("C:/users/amish/desktop/asdf.mp3");
});
break;
}
}
@@ -58,14 +60,14 @@ a.on("message", function (m) {
}
}
if (a.internal.voiceConnections[chan]) {
connection = a.internal.voiceConnections[chan];
connection;
var connection = a.internal.voiceConnections[chan];
connection.playFile("C:/users/amish/desktop/audio.mp3");
}
}
});
function error(e) {
console.log(e);
console.log(e.stack);
process.exit(0);
}