New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

matrixbots

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matrixbots

The API for Bots on MatrixBots

latest
npmnpm
Version
1.1.8
Version published
Maintainers
1
Created
Source

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

Keywords

Discord

FAQs

Package last updated on 23 Apr 2022

Did you know?

Socket

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