Added updateMessage

This commit is contained in:
hydrabolt
2015-10-31 23:23:48 +00:00
parent a333548c00
commit 4b4b7d6a47
8 changed files with 180 additions and 36 deletions

View File

@@ -11,7 +11,9 @@ a.on("debug", function (m) {
a.on("message", function (m) {
if (m.content === "$$$") a.reply(m, "hi man!").then(function (m) {
a.deleteMessage(m);
a.updateMessage(m, "!!!").then(function (m) {
a.updateMessage(m, "the old content was " + m.content);
});
});
});