View Single Post
06/16/20, 03:53 AM   #5
remosito
AddOn Author - Click to view addons
Join Date: Dec 2019
Posts: 30
Originally Posted by Baertram View Post
RequestOpenUnsafeURL() only supports http and https so far as I know.
We had asked to support other links like teamSpeak3, discord etc. as well.

Curious how this works:
You save some data to the SavedVariables of an addon and let an external source (script, executable) parse the SV file + send it as http request then?
As SV will only be updated at reloadui/logout normally: Do you use the "priority update of small data to the SavedVariables" that Zos introduced?

Edit:
Oh I understood it now You use the http link of the github website and RequestOpenUnsafeURL() with the location data as URL ?a=<parameter>
Exactly :-)

The github website then forwards the "a" parameter as a json post to my discord channel webhook.
Which just posts it as a new message there.

Quite the wild hack but seems to work...

Last edited by remosito : 06/16/20 at 03:57 AM.
  Reply With Quote