Advertisement
SilverExploitz

webhook logs

Jun 14th, 2023
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. local Webhook = "https://discord.com/api/webhooks/1116503585606352916/_o90xbWfqRYfwDIyOMyOjgJzyCj3FPpB0WXXXzYApLXE4iTCbzMFar0xXOEZK-m7u0HT" -- your webhook
  2. _G.Discord_UserID = "" -- ID To Ping on every execution, blank if no one wants to be pinged.
  3.  
  4. local player = game:GetService"Players".LocalPlayer
  5. local joinTime = os.time() - (player.AccountAge*86400)
  6. local joinDate = os.date("!*t", joinTime)
  7. local premium = false
  8. local alt = true
  9. if player.MembershipType == Enum.MembershipType.Premium then
  10. premium = true
  11. end
  12.  
  13. if not premium and player.AccountAge >= 70 then
  14. alt = "Possible"
  15. elseif premium and player.AccountAge >= 70 then
  16. alt = false
  17. end
  18.  
  19. local executor = identifyexecutor() or "Unknown"
  20. local Thing = game:HttpGet(string.format("https://thumbnails.roblox.com/v1/users/avatar?userIds=%d&size=180x180&format=Png&isCircular=true", game.Players.LocalPlayer.UserId))
  21. Thing = game:GetService("HttpService"):JSONDecode(Thing).data[1]
  22. local AvatarImage = Thing.imageUrl
  23. local msg = {
  24. ["username"] = "UtilityHub Owner / Developer Logs.",
  25. ["avatar_url"] = "https://cdn.discordapp.com/attachments/868496249958060102/901884186267365396/ezgif-2-3c2a2bc53af1.gif",
  26. ["content"] = ( _G.Discord_UserID ~= "" and _G.Discord_UserID ~= nil) and tostring("<@".._G.Discord_UserID..">") or " ",
  27. ["embeds"] = {
  28. {
  29. ["color"] = tonumber(tostring("AEAEAE")), --decimal
  30. ["title"] = "Player Just Executed UtilityHub.",
  31. ["thumbnail"] = {
  32. ["url"] = AvatarImage,
  33. },
  34. ["fields"] = {
  35. {
  36. ["name"] = "Username",
  37. ["value"] = ""..player.Name.."",
  38. ["inline"] = true
  39. },
  40. {
  41. ["name"] = "Display Name",
  42. ["value"] = player.DisplayName,
  43. ["inline"] = true
  44. },
  45. {
  46. ["name"] = "UID",
  47. ["value"] = "["..player.UserId.."](" .. tostring("https://www.roblox.com/users/" .. game.Players.LocalPlayer.UserId .. "/profile")..")",
  48. ["inline"] = true
  49. },
  50. {
  51. ["name"] = "Game Id",
  52. ["value"] = "["..game.PlaceId.."](" .. tostring("https://www.roblox.com/games/" .. game.PlaceId) ..")",
  53. ["inline"] = true
  54. },
  55. {
  56. ["name"] = "Game Name",
  57. ["value"] = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name,
  58. ["inline"] = true
  59. },
  60. {
  61. ["name"] = "Executor Used",
  62. ["value"] = executor,
  63. ["inline"] = true
  64. },
  65. {
  66. ["name"] = "Alt",
  67. ["value"] = alt,
  68. ["inline"] = true
  69. },
  70. {
  71. ["name"] = "Account Age",
  72. ["value"] = player.AccountAge.."day(s)",
  73. ["inline"] = true
  74. },
  75. {
  76. ["name"] = "Date Joined",
  77. ["value"] = joinDate.day.."/"..joinDate.month.."/"..joinDate.year,
  78. ["inline"] = true
  79. },
  80. },
  81. ['timestamp'] = os.date("%Y-%m-%dT%X.000Z")
  82. }
  83. }
  84. }
  85.  
  86. if isfile("Workspace/readthis.txt") then
  87. request = http_request or request or HttpPost or syn.request
  88. request({Url = Webhook, Method = "POST", Headers = {["Content-Type"] = "application/json"}, Body = game.HttpService:JSONEncode(msg)})
  89. makefolder("Workspace")
  90. writefile("Workspace/readthis.txt", "true")
  91. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement