Converts units inline directly in Discord messages. Supports temperature, distance, weight, length and volume conversions.
This plugin is just a curiosity project of mine and I heavily used Claude Opus to generate the logical parts of the code.
- Client-side conversion: Use
<uD:16km>syntax to convert units only for yourself & other plugin users - Unit override: Use
<uT:25°C:K>to force display in a specific unit (tooltip shows your preferred unit) - Pre-send conversion: Use
<u:16km:mi,m>to convert and send the result visible to everyone - Auto-detect mode: Optionally detect units automatically without special syntax (e.g.
32.2km,-12°C)
Caution
Installing custom/unofficial Vencord plugins can be dangerous. Only install plugins from sources you trust and understand the risks involved.
If you don’t understand the following instructions, you should not attempt to install custom plugins.
Unofficial Vencord plugins cannot be installed in a pre-built Vencord setup. You need to build Vencord from source to use this plugin.
- Follow the official Vencord setup guide to set up a development environment and install custom plugins.
- After that copy the
unitSwapfolder of this repository into thesrc/userplugins/directory. (If userplugins folder does not exist, create it). - To install Vencord to Discord, run
pnpm run buildand thenpnpm run injectin the main Vencord directory. Follow the instructions in the terminal to complete the injection. - Start Discord and enable the UnitSwap plugin in Vencord settings.
I want to add this plugin to the official Vencord plugin repository, but I'm not really sure. The Vencord team does not currently accept new plugins. (See plugin-request repo)
If you have some issues or suggestions, feel free to open an issue or a pull request.