mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 18:39:35 +02:00
Server Join Post to Announcements, Lenny Command
This commit is contained in:
@@ -78,7 +78,8 @@ client.on('guildMemberRemove', member => {
|
||||
});
|
||||
|
||||
client.on('guildCreate', guild => {
|
||||
console.log("[Guild] I have joined the guild: " + guild.name + " (" + guild.id + ")!");
|
||||
console.log("[Guild] I have joined the guild: " + guild.name + ", " + guild.owner.user.username + " (" + guild.id + ")!");
|
||||
client.guilds.get(config.server).channels.get('265503171835592704').send("I have joined the guild: " + guild.name + " (Owner: " + guild.owner.user.username + ")!");
|
||||
client.shard.fetchClientValues('guilds.size').then(results => {
|
||||
console.log("[Guild Count] " + results.reduce((prev, val) => prev + val, 0));
|
||||
const carbonPOST = {
|
||||
@@ -115,7 +116,8 @@ client.on('guildCreate', guild => {
|
||||
});
|
||||
|
||||
client.on('guildDelete', guild => {
|
||||
console.log("[Guild] I have left the guild: " + guild.name + " (" + guild.id + ")...");
|
||||
console.log("[Guild] I have left the guild: " + guild.name + ", " + guild.owner.user.username + " (" + guild.id + ")...");
|
||||
client.guilds.get(config.server).channels.get('265503171835592704').send("I have left the guild: " + guild.name + " (Owner: " + guild.owner.user.username + ")...");
|
||||
client.shard.fetchClientValues('guilds.size').then(results => {
|
||||
console.log("[Guild Count] " + results.reduce((prev, val) => prev + val, 0));
|
||||
const carbonPOST = {
|
||||
|
||||
Reference in New Issue
Block a user