restored how it welcome guild

This commit is contained in:
Loic Bersier 2018-12-25 19:10:54 +01:00
parent c0fb2e9361
commit f223d27533

View file

@ -54,8 +54,6 @@ client.registry
.setThumbnail(guild.iconURL) .setThumbnail(guild.iconURL)
.setDescription(`${guild.name}\n${guild.id}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\n(${guild.owner.id})`) .setDescription(`${guild.name}\n${guild.id}\n${guild.memberCount} users\nOwner: ${guild.owner.user.username}\n(${guild.owner.id})`)
.setTimestamp() .setTimestamp()
channel.send({ embed: addEmbed }`\n\nIm now in **${client.guilds.size}** servers with **${client.users.size}** users`);
}); });
// When bot get kicked from a guild send embeds with details about it. // When bot get kicked from a guild send embeds with details about it.
@ -72,22 +70,15 @@ client.registry
.setTimestamp() .setTimestamp()
console.log('***BOT KICKED***') console.log('***BOT KICKED***')
channel.send({ embed: kickEmbed }`\n\nIm now in **${client.guilds.size}** servers with **${client.users.size}** users`);
}); });
client.on("message", async (message) => { client.on("message", async (message) => {
try { var customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`);
var customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`) customresponse.on('error', function(err) { console.log('test') })
var autoresponse = new SelfReloadJSON('./json/autoresponse.json'); var autoresponse = new SelfReloadJSON('./json/autoresponse.json');
let message_content = message.content.toLowerCase(); let message_content = message.content.toLowerCase();
// fix a stupid bug that happen for idk wich reasons pls why tf it happen
if (message_content == ('stop')) return;
if (message_content == ('is')) return;
if (message_content == ('on')) return;
if (message_content == ('once')) return;
if (message_content == ('save')) return;
if (message.author.bot) return; { if (message.author.bot) return; {
@ -116,9 +107,6 @@ client.registry
message.react("496028845967802378") message.react("496028845967802378")
} }
}} }}
} catch(err) {
console.error(err)
}
}) })
// Very basic starboard // Very basic starboard