RATDOG/_module/nss/on_pubsub.nss
Jaysyn904 7a2452f20c Added NWNX & removed conflicting spell scripts
Added NWNX & removed conflicting spell scripts
2021-08-30 20:48:48 -04:00

15 lines
323 B
Plaintext

/// @ingroup redis
/// @brief Script to handle PubSub event
/// @{
/// @file on_pubsub.nss
#include "nwnx_redis_ps"
void main()
{
struct NWNX_Redis_PubSubMessageData data = NWNX_Redis_GetPubSubMessageData();
WriteTimestampedLogEntry("Pubsub Event: channel=" + data.channel +
" message=" + data.message);
}
/// @}