forked from eprx/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wh
27 lines (25 loc) · 1.01 KB
/
wh
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
local HttpService = game:GetService("HttpService");
function SendMessage(Webhook, Message, Botname)
if not string.find(Webhook, "https://discordapp.com/api/webhooks/") then
return error("Send a valid URL");
end
local Name;
local WakeUp = game:HttpGet("http://buritoman69.glitch.me");
local API = "http://buritoman69.glitch.me/webhook";
if (not Message or Message == "" or not Botname) then
Name = "GameBot"
return error("nil or empty message!")
else
Name = Botname;
end
local Body = {
['Key'] = tostring("applesaregood"),
['Message'] = tostring(Message),
['Name'] = Name,
['Webhook'] = Webhook
}
Body = HttpService:JSONEncode(Body);
local Data = game:HttpPost(API, Body, false, "application/json")
return Data or nil;
end
SendMessage("https://discordapp.com/api/webhooks/697786370386821160/AiL0aV61sdKR12Q2qE2bkMnoTAfA8ri-UCfrqdV1NAEW8U7RK8ni8zmWrnnFzafCKVtm", "Vortex Hub has been executed!", "Spidey Bot")