#() Is it possible to somehow connect the API to denizen?

1 messages · Page 1 of 1 (latest)

rain viper
#

For example, there is a DonationAlerts API plugin, is it possible to somehow connect it with denizen and handle the event when someone donates and do something after that? it’s just that in Skript I saw that it’s possible, I personally didn’t teach it and I’m not going to just see it, but basically, is it possible to do this? thinkcat

ancient pythonBOT
#

() Is it possible to somehow connect the API to denizen?

ancient pythonBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

wanton monolithBOT
ancient pythonBOT
leaden apex
#

!event web

uneven widgetBOT
# leaden apex !event web
Group

Core

Event Lines

webserver web request

Switches

port:<#> to only handle requests to a specific port.
path:<path> to only handle requests that match the given advanced-matcher for the path.
method:<method> to only handle requests with the specific method (such as GET or POST).
has_response:<true/false> to only handle requests that do or don't have a response already.

Triggers

when a webserver opened by !command webserver receives a connection request.

Context

<context.method> returns the method that was used (such as GET or POST).
<context.path> returns the path requested (such as "/index.html").
<context.port> returns the port connected to.
<context.remote_address> returns the IP address that connected.
<context.query> returns a MapTag of the query data (if no query, returns empty map).
<context.raw_query> returns the raw query input (if no query, returns null).
<context.raw_user_info> returns the raw user info input (if any) (this is a historical HTTP system...
<context.headers> returns a MapTag of all input headers, where the key is the header name and the ...
<context.body> returns the text content of the body that was sent, if any. Particularly for POST requests.
<context.body_binary> returns the raw binary content body that was sent, if any. Particularly for POST requests.
... and 1 more.

Determine

"CODE:" + Element(Number), to set a standard web response code, such as 'code:200' for 'OK', or 'code:404' for 'File Not Found'
"HEADERS": + MapTag to set a map of headers, where map keys are the header name and map values are the text of the value, for example headers:[Content-Type=text/html] ... n...

Examples

Examples too long to display... Check the website for more examples

leaden apex
#

it'd depend on what kind of donation setup you have

rain viper
#

Thanks you 💞