1.2.0 • Published 2 years ago

matrixbotlist.js v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

MatrixBotList

🦢 Your Bots our Home - MatrixBotList

Image

If you need help you can join our Discord Server or you can visit our Documentation

1. First Steps

1.1 Installation

npm i --save matrixbotlist.js

1.2 Getting Started

const ma_API = require("matrixbotlist.js");
const mbl = new ma_API("your-bot-api-key");

// Get all likes of the Bot
try {
    await mbl.getLikes().then(data => {
        console.log(data);
    })
} catch (e) {
    console.log(e);
}

// Update Bot Stats
try {
    await mbl.updateStats(serverCount as number, userCount as number).then(data => {
        console.log(data);
    })
} catch (e) {
    console.log(e);
}

// Get Bot Info
try {
    await mbl.getBot("<botid>").then(data => {
        console.log(data);
    })
} catch (e) {
    console.log(e);
}