4.0.1 • Published 3 months ago

@synthexia/bdfd-external v4.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Introduction Note

The package was mainly created for better implementation of the Sync feature in our VS Code Extension.

BDFD External

BDFD External is a package for web scrapping BDFD Web App and make requests to it. Get your bot list and Get, Update, Create & Delete commands and variables externally!

npm i @synthexia/bdfd-external | pnpm add @synthexia/bdfd-external

Code Example

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);
    });
4.0.1

3 months ago

4.0.0

4 months ago

3.1.1

8 months ago

3.1.0

8 months ago

3.0.0

8 months ago

2.0.0

9 months ago