Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

Official Botrix API

This is the documention for the API for the Botrix bot list.

npm -i bortix-npm

Base URL:

(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

Function: getUser();

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);}}

Function: getBot();

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);}}

Function: getQueue();

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);}}

Links:

Botrix Website: https://botrix.cc/ NPM Package: https://npmjs.org/package/botrix-npm/

About

A npm wrapper for botrix api

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages