1.1.2 • Published 2 years ago
bdfdx v1.1.2
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 theimport
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");