Team_Alex

Untitled

Jan 19th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. wait(0.003)
  2.  
  3. --enables http requests
  4. local http = game:service'HttpService'
  5.  
  6. local BOT = {}
  7.  
  8. ------------------ONLY EDIT THIS SHIT-------------------------
  9. BOT.uri = 'https://discordapp.com/api/webhooks/668295203983196219/KjvKf9BFnicImnA6ntpvlwxc3hFV4srRR4_cpqFHBSlWeR4Yk_WukZhiYfKAkoVCBNIM'
  10. BOT.botname = 'robloxs'
  11. ---------------------------DONT EDIT ANYTHING BELOW--------------------
  12.  
  13. function BOT:SendMessage(Message)
  14. local data = {}
  15. data.username = BOT.botname
  16. data.content = Message
  17.  
  18. data=http:JSONEncode(data)
  19. return http:PostAsync(BOT.uri, data, Enum.HttpContentType.ApplicationJson)
  20. end
  21. -------------^^^^ needed shit for discord webhook to work tbh i dont know what df it means
  22.  
  23. -- half skidded shit from wiki but i added some stuff
  24. game.Players.PlayerAdded:connect(function(player)
  25. player.Chatted:connect(function(message) onChatted(message, player) end)
  26. end)
  27.  
  28. -- if players are in game it also logs them
  29. for i,v in pairs(game.Players:GetChildren()) do
  30. v.Chatted:connect(function(message) onChatted(message, v) end)
  31. end
  32.  
  33. -- when a player chats it checks if it meets the requirements
  34. function onChatted(message, player)
  35. local checkfam = message:sub(1, 2)
  36. local antisb = message:sub(1, 19)
  37. if antisb == "hl/http://robloxsb" then
  38. BOT:SendMessage(player.Name..' Used Gay Anti Script Stealer!')
  39. end
  40. if antisb == "HL/http://robloxsb" then
  41. BOT:SendMessage(player.Name..' Used Gay Anti Script Stealer!')
  42. end
  43. if antisb == "h/http://robloxsb" then
  44. BOT:SendMessage(player.Name..' Used Gay Anti Script Stealer!')
  45. end
  46. if antisb == "H/http://robloxsb" then
  47. BOT:SendMessage(player.Name..' Used Gay Anti Script Stealer!')
  48. end
  49. if antisb == "http/http://robloxsb" then
  50. BOT:SendMessage(player.Name..' Used Gay Anti Script Stealer!')
  51. end
  52. if antisb == "HTTP/http://robloxsb" then
  53. BOT:SendMessage(player.Name..' Used Gay Anti Script Stealer!')
  54. end
  55. if checkfam == "hl" then
  56. BOT:SendMessage(player.Name..': '..message)
  57. end
  58. if checkfam == "HL" then
  59. BOT:SendMessage(player.Name..': '..message)
  60. end
  61. if checkfam == "H/" then
  62. BOT:SendMessage(player.Name..': '..message)
  63. end
  64. if checkfam == "h/" then
  65. BOT:SendMessage(player.Name..': '..message)
  66. end
  67. if checkfam == "http/" then
  68. BOT:SendMessage(player.Name..': '..message)
  69. end
  70. if checkfam == "HTTP/" then
  71. BOT:SendMessage(player.Name..': '..message)
  72. end
  73. end
  74.  
  75. print("Initilized")
  76. http.HttpEnabled = true
Add Comment
Please, Sign In to add comment