You are viewing a potentially older version of this package.
View all versions.
CrashWebhooks
Interact with a Discord webhook when your mod crashes
| Date uploaded | 2 weeks ago |
| Version | 1.0.2 |
| Download link | KityZone-CrashWebhooks-1.0.2.zip |
| Downloads | 25 |
| Dependency string | KityZone-CrashWebhooks-1.0.2 |
This mod requires the following mods to function
README
Interact with a Discord webhook when Balatro crashes. Comes with a deck to automatically crash, for testing.
How to use
You'll need DebugPlus to execute relevant commands.
If you know lua pretty well, you can look at the source and figure out what you want to do. For those who don't want to do that, further instructions follow.
- Make your Discord webhook.
- Eval
CrashHooks.quick_init("your name"). Use the string you typed in theauthorfield of your mod's metadata. (If you're doing this as a non-modder, create a stub mod to hold your name; it doesn't need to actually do anything.) - Open up %appdata% or equivalent, and then the "Balatro" folder inside there. For mod with your name in its
authorfield, there should be a[modname]_crashes.txtfile. Open the ones you care about and then follow the instructions inside. Delete the ones you don't care about. Do not make these files public; anyone can send a webhook request if they have the URL.
Once you've done this, the webhook(s) will be sent every time Balatro crashes. Note that this is regardless of whether it's actually your mod responsible for the crash; detecting exactly which mod is at fault will never be 100% reliable and currently Crash Webhooks doesn't check at all.
TODO:
- Interface?
- Fix that thing with the file locations. It works it's just messy.
- At least try to detect whether the mod that crashed is one with a webhook file. There's already holes that will definitely make this less than 100% reliable but we can at least detect some cases where it's definitely not one of them.
