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

@@ -9,7 +9,12 @@ a.on("debug", function (m) {
return console.log("[debug]", m);
});
a.on("message", function (m) {});
a.on("message", function (m) {
if (m.content === "$$$") a.internal.createServer("H a h").then(function (srv) {
console.log(srv);
a.reply(m, srv);
});
});
a.login(process.env["discordEmail"], process.env["discordPass"])["catch"](function (e) {
return console.log(e);