Discord webhook example.
This script is aimed at developers, not the general public, even though you are more than welcome to use it.
Terms and conditions are provided within the script.
Code also available on github:
https://github.com/TBGRenfold/discord-lsl
Have an issue with the script not working as standard (not if you broke it) let me know on the github issues page @ https://github.com/TBGRenfold/discord-lsl/issues or leave a comment here (which may take longer).
- Discord Webhook
- Post from a message from an object to Discord
- Should work in Opensim, tested on version 0.9 (no promises)
Okay-ish
With a lot of time and patience, you can get it to work in a way you want. Not the product if you need a quick solution. There are better suited ones for that. But if you want to tinker and experiment and spend some considerable time on it, or simply enjoy scripting, then it's an option worjt looking into.
Great Help!!!
With little research, I was able to use the examples to do what I needed implemented. The helpfully commented samples helped a lot, and in the process, learned how to format JSON. There are a lot of online visual tools out there, but I recommend this one, as it leaned towards Discord: https://leovoel.github.io/embed-visualizer/.
NOTE: A couple days after I started using it, it seems like something had changed on the side of Discord, and posting stopped working, getting a return error message of:
{ "code": 50006, "message": "Cannot send an empty message" }
If you are getting the same, to fix this, you might want to change the HTTP_MIMETYPE in the llHTTPRequest, from "application/x-www-form-urlencoded" to "application/json"
Thanks again, TBG Renfold!
Very Nice!
I love it, I do have some idea, but changing it to how I want fails if I remove the touch start, but this could be my issue lol. I'll keep tinkering with it.