I wanna make the promote and demote commands log to discord using proxy webhooks in studios
Noah
2
Alright, so do you already have a server running?
If not you can try using this tutorial.
yea i alr have them set up and stuff
Noah
5
Did you just expose your webhook security token?
wait nvm i see theres more
Noah
8
I understand, just want to confirm that with you.
and i will delete that one
1 Like
Noah
10
What webserver are you using?
why do you ask lol? [20 character limit is annoying]
Noah
12
So we can interact with the correct endpoint so we can initiate the right code to actually call the discord webhook
Are you using an opensource webserver for this?
yea im not that advanced yet could i just maybe get a premake if possible, i dont do much ngl, i do basics and edit fms with other pieces of code or tutorials
Noah
14
Alright, do you want to try following this tutorial and then I can check in with you after you’ve done that? 
mk ill try [this limit is so annoying]
1 Like
@Noah i got it to work now what
Noah
18
Alright,
We can use this script to interact inside of roblox:
local HttpsSerivce = game:GetService("HttpService")
local Server_Url = "https://discordtorobloxwebhook.herokuapp.com/" --Put your App_URL here.
local Api_Key = "df0ef802efm2m8f2e-8f82e8f028mfe-" --API key we made here.
local Complete_Url = Server_Url.. "discord"
local function SendDiscord(DscMsg)
local Req_Url = Complete_Url .."?Key=" ..Api_Key.. "&Message=" ..DscMsg
print(Req_Url)
local Request = HttpsSerivce:GetAsync(Req_Url)
local data = HttpsSerivce:JSONDecode(Request)
end
SendDiscord("Hello from roblox!") --Send a message, customize by editing the string!
How do we integrate this into roblox do you think??
system
Closed
19
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.