Open megasmidge opened 1 year ago
worked through setting up via eventhandler stuff with Dee removed splunk link and token prior to pushing link with token will be hardcoded on the physical server to keep it out of github
added send_to_discord as it's own function. tested on my private discord with the mailbox Broadcast event and it works. Made like splunk where we send two params, the first one is whatever json we want to send, the second is a string label like "mailbox Broadacast" that the lua uses to figure out which discord channel to send it to.
added discord/splunk logging for: chat messages in game deposit/withdraw of cash and gold at banks
Looks really solid - I have a question here:
I feel we should consider making a function that sends logs to both discord & splunk. We should also keep discord & splunk seperate export as well in case we need it
Ok so I created the [LOG] directory with the folder/resource "webhook" fxmanifest.lua file with exported send_to_splunk function empty client.lua file server.lua file with the function itself exporting I ensured that in resources.cfg I added a test line in vorp_mailbox's server.lua on line 112 so when a broadcast is sent out, it also sends to splunk
tested A LOT this morning. working good!