1.1.2 • Published 3 years ago

bdfdx v1.1.2

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

bdfdx

Bot Designer for Discord Extension.

Installation

npm install bdfdx

Example Usage

//Configuration
import { Bot, Plugins } from "bdfdx";
const bot = new Bot("token");
bot.init();

//Enabling plugins
const plugins = new Plugins();
plugins.enable("listBans"); //Now the listBans endpoint is enabled

⚙️ const { Bot, Plugins } = require("bdfdx"); can used rather than the import statement, for commonJS.

Now, once you run the project, in BDFD you can do:

$nomention
$httpGet[<INSERT LINK TO PROJECT/REPL>/listBans?guild=$guildID]
$httpResult[ids] $c[List of all banned user IDs]
$httpResult[usernames] $c[List of all banned usernames]
$httpResult[tags] $c[List of all banned user tags]

:warning: <INSERT LINK TO PROJECT/REPL> should be replaced with your main project or replit link.

:new: More plugins are coming soon!

Hosting

After setting up your https://uptimerobot.com server, use bot.host("url"). Replace 'url' with the link to your replit website, or whatever URL the plugin endpoints are being hosted on.

Example configuration:

import { Bot, Plugins } from "bdfdx";
const bot = new Bot("token");
bot.init();
bot.host("https://projectname.username.repl.co");
1.1.2

3 years ago

1.1.1

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago