mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
27 lines
615 B
JavaScript
27 lines
615 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
Client: require("./Client/Client.js")
|
|
};
|
|
|
|
var a = new module.exports.Client();
|
|
a.on("debug", function (m) {
|
|
return console.log("[debug]", m);
|
|
});
|
|
a.on("warn", function (m) {
|
|
return console.log("[warn]", 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.on("channelUpdated", function (o, n) {
|
|
a.sendMessage(o, o.name + " v " + n.name);
|
|
});
|
|
|
|
a.login(process.env["discordEmail"], process.env["discordPass"])["catch"](function (e) {
|
|
return console.log(e);
|
|
}); |