kylemcshea / homestead-vorp

Dream-VORP is a community-driven project enhancing the original VORP Core software. We focus on performance optimizations, code readability, and bug fixes. Our aim is to build upon VORP Core's foundation while acknowledging their invaluable work. Join us in refining this software!
GNU General Public License v3.0
3 stars 0 forks source link

[LOG] folder, webhook resource, vorp_mailbox test #47

Open megasmidge opened 1 year ago

megasmidge commented 1 year ago

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!

megasmidge commented 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

megasmidge commented 1 year ago

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.

megasmidge commented 1 year ago

added discord/splunk logging for: chat messages in game deposit/withdraw of cash and gold at banks

kylemcshea commented 1 year ago

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