matrixbotlist.js

1.2.0 • Public • Published

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);
}

Package Sidebar

Install

npm i matrixbotlist.js

Weekly Downloads

2

Version

1.2.0

License

ISC

Unpacked Size

5.17 kB

Total Files

7

Last publish

Collaborators

  • ogmatrix