fix
This commit is contained in:
parent
dae0c55813
commit
6ff8a030ec
2 changed files with 77 additions and 75 deletions
|
@ -70,86 +70,88 @@ client.on("messageCreate", async message => {
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
if (data.User?.Blacklist) return;
|
if (data.User?.Blacklist) return;
|
||||||
if (
|
try {
|
||||||
domains.iplogger.includes(
|
if (
|
||||||
message.content
|
domains.iplogger.includes(
|
||||||
.toLowerCase()
|
message.content
|
||||||
.match(
|
.toLowerCase()
|
||||||
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
.match(
|
||||||
)?.[0]
|
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
||||||
.replace(/(https|http):\/\/+/g, "")
|
)?.[0]
|
||||||
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
.replace(/(https|http):\/\/+/g, "")
|
||||||
.slice(0, -1)
|
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
||||||
) ||
|
.slice(0, -1)
|
||||||
domains.scam.includes(
|
) ||
|
||||||
message.content
|
domains.scam.includes(
|
||||||
.toLowerCase()
|
message.content
|
||||||
.match(
|
.toLowerCase()
|
||||||
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
.match(
|
||||||
)?.[0]
|
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
||||||
.replace(/(https|http):\/\/+/g, "")
|
)?.[0]
|
||||||
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
.replace(/(https|http):\/\/+/g, "")
|
||||||
.slice(0, -1)
|
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
||||||
) ||
|
.slice(0, -1)
|
||||||
domains.ngrok.includes(
|
) ||
|
||||||
message.content
|
domains.ngrok.includes(
|
||||||
.toLowerCase()
|
message.content
|
||||||
.match(
|
.toLowerCase()
|
||||||
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
.match(
|
||||||
)?.[0]
|
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
||||||
.replace(/(https|http):\/\/+/g, "")
|
)?.[0]
|
||||||
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
.replace(/(https|http):\/\/+/g, "")
|
||||||
.slice(0, -1)
|
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
||||||
)
|
.slice(0, -1)
|
||||||
) {
|
|
||||||
const _ = new EmbedBuilder()
|
|
||||||
.setTitle(`Scam/IP Grabber detected`)
|
|
||||||
.setTimestamp()
|
|
||||||
.setColor(client.color)
|
|
||||||
.addFields(
|
|
||||||
{
|
|
||||||
name: "User",
|
|
||||||
value: `${message.author.tag} (${message.author.id})`,
|
|
||||||
inline: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Scam/IP Logger URL",
|
|
||||||
value: `||https://${message.content
|
|
||||||
.toLowerCase()
|
|
||||||
.match(
|
|
||||||
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
|
||||||
)?.[0]
|
|
||||||
.replace(/(https|http):\/\/+/g, "")
|
|
||||||
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
|
||||||
.slice(0, -1)}||`,
|
|
||||||
inline: true,
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
.setFooter({
|
) {
|
||||||
text: `Tactical Protection by ${client.author}`,
|
const _ = new EmbedBuilder()
|
||||||
icon_url: client.user.displayAvatarURL({ dynamic: true }),
|
.setTitle(`Scam/IP Grabber detected`)
|
||||||
});
|
.setTimestamp()
|
||||||
message.channel.send({
|
.setColor(client.color)
|
||||||
embeds: [_],
|
.addFields(
|
||||||
});
|
|
||||||
client.channels.cache.get(client.config.ScamLinkLog).send({
|
|
||||||
embeds: [
|
|
||||||
_.addFields(
|
|
||||||
{
|
{
|
||||||
name: "Message",
|
name: "User",
|
||||||
value: message.content,
|
value: `${message.author.tag} (${message.author.id})`,
|
||||||
inline: false,
|
inline: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Guild",
|
name: "Scam/IP Logger URL",
|
||||||
value: message.guild ? message.guild.name : "None",
|
value: `||https://${message.content
|
||||||
|
.toLowerCase()
|
||||||
|
.match(
|
||||||
|
/(https|http):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+~-]*[\w.,@?^=%&:/~+~-])+/g
|
||||||
|
)?.[0]
|
||||||
|
.replace(/(https|http):\/\/+/g, "")
|
||||||
|
.match(/\s*([^)]+?)\s*\/+/g, "")[0]
|
||||||
|
.slice(0, -1)}||`,
|
||||||
inline: true,
|
inline: true,
|
||||||
}
|
}
|
||||||
),
|
)
|
||||||
],
|
.setFooter({
|
||||||
});
|
text: `Tactical Protection by ${client.author}`,
|
||||||
message.delete().catch(() => {});
|
icon_url: client.user.displayAvatarURL({ dynamic: true }),
|
||||||
}
|
});
|
||||||
|
message.channel.send({
|
||||||
|
embeds: [_],
|
||||||
|
});
|
||||||
|
client.channels.cache.get(client.config.ScamLinkLog).send({
|
||||||
|
embeds: [
|
||||||
|
_.addFields(
|
||||||
|
{
|
||||||
|
name: "Message",
|
||||||
|
value: message.content,
|
||||||
|
inline: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Guild",
|
||||||
|
value: message.guild ? message.guild.name : "None",
|
||||||
|
inline: true,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
],
|
||||||
|
});
|
||||||
|
message.delete().catch(() => {});
|
||||||
|
}
|
||||||
|
} catch (_) {}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
message?.content.startsWith(data.Guild.Prefix) ||
|
message?.content.startsWith(data.Guild.Prefix) ||
|
||||||
|
|
2
index.js
2
index.js
|
@ -1,5 +1,5 @@
|
||||||
const NYX = require("./client/NYX");
|
const NYX = require("./client/NYX");
|
||||||
const client = new NYX();
|
const client = new NYX();
|
||||||
module.exports = client;
|
module.exports = client;
|
||||||
//process.on("unhandledRejection", () => {}); // add // when need to debug
|
process.on("unhandledRejection", () => {}); // add // when need to debug
|
||||||
client.start();
|
client.start();
|
||||||
|
|
Loading…
Reference in a new issue