A package that allows you to work with BDFD externally
npm install @synthexia/bdfd-externalsh
npm i @synthexia/bdfd-external | pnpm add @synthexia/bdfd-external
`
Code Example
`ts
import { type BDFDExternalRequestError, Command } from "@synthexia/bdfd-external";
Command.get(authToken, botId, commandId)
.then((command) => {
const { name, trigger, code, language } = command;
console.log(The "${name}" command's trigger is "${trigger}");
console.log(Its scripting language is ${language.name});
console.log('Its code:\n', code);
})
.catch((e: BDFDExternalRequestError) => {
console.error(e.statusCode, e.message);
});
``