mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
20 lines
529 B
JavaScript
20 lines
529 B
JavaScript
module.exports = {
|
|
Client : require("./Client/Client.js")
|
|
}
|
|
|
|
var a = new module.exports.Client();
|
|
a.on("debug", (m) => console.log("[debug]",m));
|
|
a.on("warn", (m) => console.log("[warn]", m));
|
|
|
|
a.on("message", m => {
|
|
if(m.content === "$$$")
|
|
a.internal.createServer("H a h").then(srv => {
|
|
console.log(srv);
|
|
a.reply(m, srv);
|
|
});
|
|
});
|
|
a.on("serverUpdated", (oldsrv, newsrv) => {
|
|
console.log(oldsrv.name, "v", newsrv.name);
|
|
});
|
|
|
|
a.login(process.env["discordEmail"], process.env["discordPass"]).catch((e)=>console.log(e)); |