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