Added joinServer

This commit is contained in:
hydrabolt
2015-11-18 17:13:06 +00:00
parent e7df5bd400
commit c342ca4116
9 changed files with 81 additions and 34 deletions

View File

@@ -9,6 +9,10 @@ client.on("message", m => {
if(m.content === "death"){
m.channel.delete();
}
if (m.content.startsWith("join: ")) {
var invite = m.content.split(" ")[1];
client.joinServer(invite).then(console.log).catch(console.log);
}
if (m.content === "&init") {
for (var channel of m.channel.server.channels) {
if (channel instanceof Discord.VoiceChannel) {