Skip to content

That's the official npm module which provide a easy method to post how many servers your bot have easly on the bladebotlist's API !

License

Notifications You must be signed in to change notification settings

Bladelist/bbl-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to bbl-api 👋

Version Documentation Maintenance License: mit Twitter: bladebotlist

The official bladebotlist.xyz's api to post your server count easly and interact with the bladebotlist api

Install

npm install bbl-api

Usage

const BBL = require("bbl-api");
const client = new BBL(
    "BOT ID", // BOT_ID
    "THE API KEY", // API_KEY, use bbl!key gen on the discord server
    {
        server_count: "2",
        interval: 300000,
    });


client.on("ready", () => console.log("Client is started !")); // when the module is loaded and ready to post data

client.on("debug", (log) => console.log(log))

client.on("update", () => console.log("Stats updated !")); // autopost or manual post

client.on("error", (error) => console.log(`Something was wrong when the module has posted stats: ${error}`)); // complete reports about errors like invalid api key or bot id

you can also checkout the exemples directory where you can see some examples :P

Author

👤 ****

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 NaoismyWaifu.
This project is MIT licensed.

About

That's the official npm module which provide a easy method to post how many servers your bot have easly on the bladebotlist's API !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published