matrixbots

1.1.8 • Public • Published

MatrixBots

🦢 Your Bots our Home - MatrixBots

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 matrixbots

1.2 Getting Started

const ma_API = require("matrixbots");
const matrixbots = new ma_API("your-bot-api-key");

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

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

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

Package Sidebar

Install

npm i matrixbots

Weekly Downloads

1

Version

1.1.8

License

ISC

Unpacked Size

5.11 kB

Total Files

7

Last publish

Collaborators

  • ogmatrix