Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService = game:GetService("HttpService")
- local url = "http://fi3.bot-hosting.net:20143/send" -- 파이썬 서버 주소
- local function sendToDiscord(message)
- local data = {
- ["content"] = message
- }
- local jsonData = HttpService:JSONEncode(data)
- local success, response = pcall(function()
- return HttpService:PostAsync(url, jsonData, Enum.HttpContentType.ApplicationJson)
- end)
- if success then
- print("Message sent to Discord")
- else
- warn("Failed to send message")
- end
- end
- sendToDiscord("로블록스에서 보내는 메시지!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement