UNPKG

matrixbotlist.js

Version:

Here can bots that are verified by us, use the API.

47 lines (40 loc) 1.04 kB
# MatrixBotList 🦢 Your Bots our Home - **MatrixBotList** ![Image](https://cdn.discordapp.com/attachments/963047690135031839/963054617816617030/MatrixBots-Banner.png) If you need help you can join our [Discord Server](https:https://discord.gg/sQWnQsu3Js) or you can visit our [Documentation](https://docs.matrixbotlist.xyz) # 1. First Steps ## 1.1 Installation ```npm npm i --save matrixbotlist.js ``` ## 1.2 Getting Started ```js 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); } ```