SudoBot’s extension system lets you augment the bot with custom commands, event listeners, and services — all packaged as independent modules that can be installed, uninstalled, or disabled without touching the core codebase. Extensions can be written in TypeScript or JavaScript.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/onesoft-sudo/sudobot/llms.txt
Use this file to discover all available pages before exploring further.
Official extensions
The repository ships with several officially supported extensions in theextensions/ directory:
| Extension | Description |
|---|---|
counting | Counting game for Discord channels |
neko | Neko/anime image commands |
waifu.pics | Anime image commands powered by waifu.pics |
extensions/.extbuilds/.
How extensions work
Each extension lives in its own directory inside the extensions root (configured viaEXTENSIONS_DIRECTORY in your .env). An extension consists of:
extension.json— metadata and build configurationsrc/commands/— custom slash commandssrc/events/— Discord event listenerssrc/index.ts— the extension entry point
Installing prebuilt extensions
Set the extensions directory
Add
EXTENSIONS_DIRECTORY to your .env file pointing to where you want extensions installed:.env
Copy a prebuilt extension
Copy a prebuilt
.tar.gz archive from extensions/.extbuilds/ into your extensions directory and extract it:Next steps
Creating Extensions
Learn how to build your own custom extension with commands and event listeners.
Environment Variables
Configure the EXTENSIONS_DIRECTORY and other extension-related settings.
