Advertisement
notsalty999

auto report.lua

Apr 30th, 2023
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.47 KB | Source Code | 0 0
  1. getgenv().autoreportcfg = {
  2.     Webhook = "https://discord.com/api/webhooks/1102142949644570685/5EAitF0Z6a2gpeLRG40-wsTJoRhHDtuudJ_DgdW7YnpduzQKv2D0YgulgTcWqYA6GEnc", -- you can leave it empty if u want ingame notifs
  3.     autoMessage = { -- whispers to people if they get autoreported
  4.        enabled = true,
  5.        Message = 'get auto reported xd',
  6.     },
  7. }
  8.  
  9. repeat task.wait() until game:IsLoaded()
  10.  
  11. words = {
  12.     ['gay'] = 'Bullying',
  13.     ['lesbian'] = 'Bullying',
  14.     ['noob'] = 'Bullying',
  15.     ['clown'] = 'Bullying',
  16.     ['get a life'] = 'Bullying',
  17.     ['getalife'] = 'Bullying',
  18.     ['no life'] = 'Bullying',
  19.     ['nolife'] = 'Bullying',
  20.     ['wizard'] = 'Bullying',
  21.     ['reports'] = 'Bullying',
  22.     ['father'] = 'Bullying',
  23.     ['mother'] = 'Bullying',
  24.     ['dumb'] = 'Bullying',
  25.     ['stupid'] = 'Bullying',
  26.     ['cringe'] = 'Bullying',
  27.     ['skill issue'] = 'Bullying',
  28.     ['parent'] = 'Bullying',
  29.     ['kid'] = 'Bullying',
  30.     ['ugly'] = 'Bullying',
  31.     ['child'] = 'Bullying',
  32.     ['trash'] = 'Bullying',
  33.     ['bozo'] = 'Bullying',
  34.     ['kys'] = 'Bullying',
  35.     ['die'] = 'Bullying',
  36.     ['killyou'] = 'Bullying',
  37.     ['loser'] = 'Bullying',
  38.     ['black'] = 'Bullying',
  39.     [' white '] = 'Bullying',
  40.     ['ez l'] = 'Bullying',
  41.     ['l ez'] = 'Bullying',
  42.     ['negro'] = 'Bullying',
  43.     ['nivver'] = 'Bullying',
  44.     ['negar'] = 'Bullying',
  45.     ['bad'] = 'Bullying',
  46.     ['worst'] = 'Bullying',
  47.     ['fat'] = 'Bullying',
  48.     ['hack'] = 'Bullying',
  49.     ['exploit'] = 'Bullying',
  50.     ['cheat'] = 'Bullying',
  51.     ['download'] = 'Offsite Links',
  52.     ['youtube'] = 'Offsite Links',
  53.     ['dizzy'] = 'Bullying',
  54. }
  55.  
  56. if not game:GetService('ReplicatedStorage'):FindFirstChild('DefaultChatSystemChatEvents') or not game:GetService('ReplicatedStorage'):FindFirstChild('DefaultChatSystemChatEvents'):FindFirstChild('OnMessageDoneFiltering') then return end
  57. DCSCE = game:GetService('ReplicatedStorage'):FindFirstChild('DefaultChatSystemChatEvents')
  58. if not autoreportcfg then
  59. getgenv().autoreportcfg = {
  60.     Webhook = '',
  61.     autoMessage = {
  62.        enabled = true,
  63.        Message = 'so sad you got autoreported :(',
  64.     },
  65. }
  66. end
  67.  
  68. local players = game:GetService("Players")
  69. local notifs = loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Orion/main/source"))()
  70.  
  71. function notify(title, text)
  72.     notifs:MakeNotification({
  73.         Name = title,
  74.         Content = text,
  75.         Time = 5
  76.     });
  77. end;
  78.  
  79.  
  80. if syn then
  81.    notify("Autoreport",'this DOESNT WORK ON SYNAPSE!')
  82.    notify('Autoreport','3ds disabled ReportAbuse so yea')
  83.    return
  84. end
  85.  
  86. function handler(msg,speaker)
  87.    for i,v in next, words do
  88.       if string.match(string.lower(msg),i) then
  89.          players:ReportAbuse(players[speaker],v,'He is breaking roblox TOS')
  90.          task.wait(1.5)
  91.          players:ReportAbuse(players[speaker],v,'He is breaking roblox TOS')
  92.          if autoreportcfg.Webhook ~= nil and autoreportcfg.Webhook ~= '' and autoreportcfg.Webhook ~= ' ' then
  93.          local data =
  94.          {
  95.              ["embeds"] = {{
  96.                  ["title"] = "**" .. game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name .. "**",
  97.                  ["description"] = "Auto-reported a player",
  98.                  ["type"] = "rich",
  99.                  ["color"] = tonumber(0x00aff4),
  100.                  ["url"] = "https://www.roblox.com/games/" .. game.PlaceId,
  101.                  ["fields"] = {
  102.                      {
  103.                          ["name"] = "Name",
  104.                          ["value"] = "[" .. players[speaker].Name .. "](https://www.roblox.com/users/" .. players[speaker].UserId .. ")",
  105.                          ["inline"] = true
  106.                      },
  107.                      {
  108.                          ["name"] = "Message",
  109.                          ["value"] = msg,
  110.                          ["inline"] = true
  111.                      },
  112.                      {
  113.                         ["name"] = "Offensive Part",
  114.                         ["value"] = i,
  115.                         ["inline"] = true
  116.                     },
  117.                     {
  118.                         ["name"] = "Reported For",
  119.                         ["value"] = v,
  120.                         ["inline"] = true
  121.                     },
  122.                  },
  123.                  ["footer"] = {
  124.                      ["text"] = "\nIf you think this is a mistake: stfu"
  125.                  },
  126.                  ["author"] = {
  127.                      ["name"] = "Auto Report"
  128.                  }
  129.              }}
  130.          }
  131.      local newdata = (game:GetService("HttpService")):JSONEncode(data);
  132.      local request = http_request or request or HttpPost or http.request or syn.request;
  133.      local abcdef = {
  134.          Url = autoreportcfg.Webhook,
  135.          Body = newdata,
  136.          Method = "POST",
  137.          Headers = {
  138.              ["content-type"] = "application/json"
  139.          }
  140.      };
  141.      request(abcdef);
  142.     else
  143.         notify('Autoreport','Autoreported ' .. speaker .. ' | offensive part: ' .. i)
  144.     end
  145.     if DCSCE:FindFirstChild('SayMessageRequest') and autoreportcfg.autoMessage.enabled == true then
  146.        DCSCE.SayMessageRequest:FireServer('/w ' .. speaker .. ' ' .. autoreportcfg.autoMessage.Message,'All')
  147.     end
  148.       end
  149.    end
  150. end
  151.  
  152. msg = DCSCE:FindFirstChild('OnMessageDoneFiltering')
  153. msg.OnClientEvent:Connect(function(msgdata)
  154.     if tostring(msgdata.FromSpeaker) ~= players.LocalPlayer.Name then
  155.        handler(tostring(msgdata.Message),tostring(msgdata.FromSpeaker))
  156.     end
  157. end)
Tags: auto report
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement