This is the documention for the API for the Botrix bot list.
npm -i bortix-npm
(AS OF 30/11/2020) The base url to botrix API is:
https://botrix.cc/api/v1/
This can further be followed up by:
https://botrix.cc/api/v1/bot/:botID
https://botrix.cc/api/v1/server/:serverID
To use this function, it can be used two ways:
In a JS application:
constBotrix=require('botrix-npm');user();asyncfunctionuser(){constuser=awaitBotrix.getUser('534232491360387082');returnconsole.log(user);}or if you would like to implement the function into a Discord bot you can do:
constBotrix=require('botrix-npm');module.exports={name: 'getuser',asyncrun(client,message,args){constuser=message.mentions.users.first();constuserData=awaitBotrix.getUser(user);console.log(userData);}}To use this function, it can be used two ways:
In a JS application:
constBotrix=require('botrix-npm');bot();asyncfunctionbot(){constbot=awaitBotrix.getBot('534232491360387082');returnconsole.log(bot);}or if you would like to implement the function into a Discord bot you can do:
constBotrix=require('botrix-npm');module.exports={name: 'getuser',asyncrun(client,message,args){constbot=message.mentions.users.first();constbotData=awaitBotrix.getBot(bot);console.log(botData);}}To use this function, it can be used two ways:
In a JS application:
constBotrix=require('botrix-npm');queue();asyncfunctionuser(){constuser=awaitBotrix.getQueue();returnconsole.log(user);}or if you would like to implement botrix-npm into a Discord bot you can do:
constBotrix=require('botrix-npm');module.exports={name: 'getuser',asyncrun(client,message,args){constqueueData=awaitBotrix.getQueue();console.log(queueData);}}Botrix Website: https://botrix.cc/ NPM Package: https://npmjs.org/package/botrix-npm/