forked from Supositware/Haha-Yes
restored how it welcome guild
This commit is contained in:
parent
c0fb2e9361
commit
f223d27533
1 changed files with 5 additions and 17 deletions
16
index.js
16
index.js
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue