2026/02/14 Update

Added and activated PRCX.
Added NWNxEE libraries.
Full compile.
This commit is contained in:
Jaysyn904
2026-02-14 22:56:10 -05:00
parent 9c4c3ae83b
commit dadee7b011
77 changed files with 27262 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
/// @addtogroup webhook Webhook
/// @brief Send messages to external entities through web hooks.
/// @{
/// @file nwnx_webhook.nss
const string NWNX_WebHook = "NWNX_WebHook"; ///< @private
/// @brief Send a slack compatible webhook.
/// @param host The web server to send the hook.
/// @param path The path to the hook.
/// @param message The message to dispatch.
/// @param username The username to display as the originator of the hook.
/// @param mrkdwn Set to false if you do not wish your message's markdown be parsed.
void NWNX_WebHook_SendWebHookHTTPS(string host, string path, string message, string username = "", int mrkdwn = 1);
/// @brief Resends a webhook message after a defined delay.
///
/// Handy when a submission is rate limited, since the message that the event sends in NWNX_Events_GetEventData
/// is already constructed. So it just resends the WebHook with an optional delay.
/// @param host The web server to send the hook.
/// @param path The path to the hook.
/// @param sMessage The message to dispatch.
/// @param delay The delay in seconds to send the message again.
void NWNX_WebHook_ResendWebHookHTTPS(string host, string path, string sMessage, float delay = 0.0f);
/// @}
void NWNX_WebHook_SendWebHookHTTPS(string host, string path, string message, string username = "", int mrkdwn = 1)
{
NWNXPushInt(mrkdwn);
NWNXPushString(username);
NWNXPushString(message);
NWNXPushString(path);
NWNXPushString(host);
NWNXCall(NWNX_WebHook, "SendWebHookHTTPS");
}
void NWNX_WebHook_ResendWebHookHTTPS(string host, string path, string sMessage, float delay = 0.0f)
{
DelayCommand(delay, NWNX_WebHook_SendWebHookHTTPS(host, path, sMessage));
}