VampireWebhook

v0.1.0·Updated 2025-05-21

A simple package for sending messages to Discord.

About this mod Author’s original text

VampireWebhook - Simple Discord webhook integration

Features

  • Loads webhook from hook.txt
  • Allows mods to send messages to discord
  • Format messages with markdown syntax

For admins and server owners:

To properly setup this mod you need to:

  • Create a hook.txt file in \BepInEx\config\
  • Go to your discord and get your webhook url in the channel you want messages sent to. (how to get hook url)
  • Add the webhook url to hook.txt
  • ‼️NOTE: Do not share the webhook url with anyone. Don't post it when asking for support either.
  • Add the VampireWebhook.dll to \BepInEx\plugins\
  • You're good to go!

Setttings

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

For devs:

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)

}

credits and thanks:

Want to give thanks to Deca, Odjit and everyone in the VrisingModing discord who helped answer questions.

Support:

  • I go by Morphine on the Vrising modding Discord
  • Additionally feel free to open issues on the github

Pull Requests:

I 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.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPack_V_Risingdeca-VampireCommandFramework

File & checksum

Filename
VampireWebhook-0.1.0.zip
File size
57.9 KiB