matrixbots
v1.1.8
Published
The API for Bots on MatrixBots
Downloads
10
Maintainers
Readme
MatrixBots
🦢 Your Bots our Home - MatrixBots
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);
}