Socket
Socket
Sign inDemoInstall

bfdapi.js

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bfdapi.js

A Javascript wrapper for the botsfordiscord api.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
141 kB
Created
Weekly downloads
 

Readme

Source

A node module for interacting with Bots For Discord's api


Any problem?

Feel free to create an issue on this repository or for faster response, join this discord server.

Some things to Note

  • This module doesn't support auto posting features.
  • This module doesn't support handling webhooks.

Examples:

Posting Server Count

const BFDAPI = require("bfdapi.js");
const api = new BFDAPI("Client ID", "API Token");

api.postServerCount(25).then((res) => console.log(res));
// if successful: { message: 'Server count successfully updated.', code: 200 }

// if failed, it will throw an error

Get Bot

const BFDAPI = require("bfdapi.js");
const api = new BFDAPI("Client ID");

api.getBot("Client ID").then((res) => console.log(res));
// if successful: {<Object>}

// if failed, it will throw an error

Contributions

Fork the repo, add some codes, then pull the new codes, and if it's good. I'll merge it will the main branch.

Keywords

FAQs

Last updated on 17 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc