mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Added message sending
This commit is contained in:
@@ -8,6 +8,13 @@ var a = new module.exports.Client();
|
||||
a.on("debug", function (m) {
|
||||
return console.log("[debug]", m);
|
||||
});
|
||||
|
||||
a.on("message", function (m) {
|
||||
if (m.content === "$$$") a.reply(m, "hi man!")["catch"](function (e) {
|
||||
return console.log(e.stack);
|
||||
});
|
||||
});
|
||||
|
||||
a.login(process.env["discordEmail"], process.env["discordPass"])["catch"](function (e) {
|
||||
return console.log(e);
|
||||
});
|
||||
Reference in New Issue
Block a user