matrixbotlist.js
v1.2.0
Published
Here can bots that are verified by us, use the API.
Downloads
9
Maintainers
Readme
MatrixBotList
🦢 Your Bots our Home - MatrixBotList
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);
}