Added createServer

This commit is contained in:
hydrabolt
2015-11-01 13:08:17 +00:00
parent b8aaa590b4
commit 0fe42c61da
10 changed files with 205 additions and 9 deletions

View File

@@ -6,6 +6,11 @@ var a = new module.exports.Client();
a.on("debug", (m) => console.log("[debug]",m));
a.on("message", m => {
if(m.content === "$$$")
a.internal.createServer("H a h").then(srv => {
console.log(srv);
a.reply(m, srv);
});
});
a.login(process.env["discordEmail"], process.env["discordPass"]).catch((e)=>console.log(e));