MaxproGlitcher

Untitled

Aug 22nd, 2024
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. -- made MaxproGlitcher
  2.  
  3. -- pour avoir le speudo et id du jeux et le id du servers roblox ;)
  4. local webhookURL = "YOU WEBHOOK DISCORD URL"
  5.  
  6. local function sendToWebhook(url, payload)
  7. local HttpService = game:GetService("HttpService")
  8. local response = http_request({
  9. Url = url,
  10. Method = "POST",
  11. Headers = {
  12. ["Content-Type"] = "application/json"
  13. },
  14. Body = HttpService:JSONEncode(payload)
  15. })
  16. end
  17.  
  18. local embeds = {
  19. ["title"] = "You Title",
  20. ["description"] = "You Description",
  21. ["color"] = 255,
  22. ["fields"] = {
  23. {["name"] = "Username", ["value"] = game.Players.LocalPlayer.Name, ["inline"] = true},
  24. {["name"] = "Place Id", ["value"] = game.PlaceId, ["inline"] = true},
  25. {["name"] = "Job Id", ["value"] = game.JobId, ["inline"] = true}
  26. },
  27. ["footer"] = {["text"] = "Time Executed"},
  28. ["timestamp"] = os.date("!%Y-%m-%dT%H:%M:%SZ")
  29. }
  30.  
  31. -- use embeds
  32. local message = {
  33. ["content"] = "You Content",
  34. ["username"] = "Webhook Username",
  35. ["embeds"] = {embeds}
  36. }
  37.  
  38. sendToWebhook(webhookURL, message)
  39.  
Advertisement
Add Comment
Please, Sign In to add comment