Skip to content

New Macros

Jamz edited this page Mar 5, 2019 · 4 revisions

Work in Progress!

Pulling in the various forum posts and wrap some real documentation around new macro functions in this fork....


requestURL(string URL), return string

Pass a URL string and it will return any data from that source. This will perform a GET request.

Sample: [r: requestURL("http://www.gooogle.com")]

sendURL(string URL, string payload), returns string

Pass a URL string and a payload and return any data from that source.

Sample: [r: results = sendURL("https://discordapp.com/api/webhooks/yourkey/slack", json.set("{}", "text", "XP was just awarded!"))]