diff options
author | ubq323 <ubq323@ubq323.website> | 2025-02-26 00:04:29 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-02-26 00:04:29 +0000 |
commit | ec4053dea479c3c85d57c447e262a90addcce5c3 (patch) | |
tree | 66b90339fe9e4d3ddf0c470f459569099b0b910a /discord/the.lua | |
parent | 4dec20e4ff11b61be57a6cfbdb289327d9e1eb7d (diff) |
start of discord pylon
Diffstat (limited to 'discord/the.lua')
-rw-r--r-- | discord/the.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/the.lua b/discord/the.lua index 27e0644..d3aaf58 100644 --- a/discord/the.lua +++ b/discord/the.lua @@ -1,6 +1,5 @@ local http_request = require'http.request' local dkjson = require'dkjson' -local url = 'https://discord.com/api/v8/webhooks/1277689699254800436/gzYU3voeunQsEdC797-hgXdTIbJDk09IVuj6l1t2alqbX9xS0d_St7bDWRkagUuQ3sat' local function exec_webhook(url, payload, debug) local req = http_request.new_from_uri(url) @@ -17,8 +16,9 @@ local function exec_webhook(url, payload, debug) assert(status:sub(1,1) == '2', 'status was '..status..' not 2xx') end -return { grom = function(from,body) print(body) exec_webhook(url, { - content=body, - username=from, - }, true) end } +return exec_webhook +-- return { grom = function(from,body) print(body) exec_webhook(url, { +-- content=body, +-- username=from, +-- }, true) end } |