
To properly setup this mod you need to:
hook.txt file in \BepInEx\config\VampireWebhook.dll to \BepInEx\plugins\The settings file will be created at: BepInEx\config\phlebotomist.morphine.VampireWebhook.cfg
Set the value to false if you need to turn off the webhook for some reason.
[General]
## toggle for sending messages to the webhook
# Setting type: Boolean
# Default value: true
UseDiscordWebhook = true
The code is pretty short and I added doc comments above all functions but here's a quick overview of how it's intended to be used.
SendDiscordMessageAsync can be used to send the messages. HookEnabled is public so you can short circuit any proccessing or string building if the hook is turned off, however it is not required.
using VampireWebhook;
private static void exmapleMessageBuilder(int someNumber){
if (!HookEnabled())
return;
string myString = $"Wow it's over: {someNumber}!"
_ = DiscordWebhook.SendDiscordMessageAsync(myString)
}
Want to give thanks to Deca, Odjit and everyone in the VrisingModing discord who helped answer questions.
Morphine on the Vrising modding DiscordI want to keep this thing simple but if there's anything you think I missed or did stupid I will try to review any PR's in a timely manner. Feel free to msg me on Discord (@morphine) if I don't respond within a day.