Added deleting messages

This commit is contained in:
hydrabolt
2015-10-31 23:12:14 +00:00
parent 28308433da
commit a333548c00
10 changed files with 195 additions and 44 deletions

View File

@@ -10,8 +10,8 @@ a.on("debug", function (m) {
});
a.on("message", function (m) {
if (m.content === "$$$") a.reply(m, "hi man!")["catch"](function (e) {
return console.log(e.stack);
if (m.content === "$$$") a.reply(m, "hi man!").then(function (m) {
a.deleteMessage(m);
});
});