matrixbots
Version:
The API for Bots on MatrixBots
47 lines (40 loc) • 1.05 kB
Markdown
🦢 Your Bots our Home - **MatrixBots**

If you need help you can join our [Discord Server](https:https://discord.gg/sQWnQsu3Js)
or
you can visit our [Documentation](https://docs.matrixbots.xyz)
```npm
npm i --save matrixbots
```
```js
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);
}
```