Fixed start PM

This commit is contained in:
hydrabolt
2015-10-31 23:46:46 +00:00
parent 6d6dcf533a
commit 3c16a9f2a4
8 changed files with 35 additions and 71 deletions

View File

@@ -7,12 +7,7 @@ a.on("debug", (m) => console.log("[debug]",m));
a.on("message", m => {
if(m.content === "$$$")
a.reply(m, "hi man!")
.then( m => {
a.updateMessage(m, "!!!").then( m => {
a.updateMessage(m, "the old content was " + m.content);
});
});
a.sendMessage(m.author, "hi!").catch(e => console.log(e));
});
a.login(process.env["discordEmail"], process.env["discordPass"]).catch((e)=>console.log(e));