1.1.0 • Published 1 year ago

exzect-api v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Getting started

const ExzectBots = require("exzect-api")
const api = new ExzectBots({ token: ""}) // create instance

Example

const ExzectBots = require("exzect-api")

async function main() {
    const api = new ExzectBots({ token: "" })
    const me = await api.getMe() // Get my current profile
    console.log(me)
}

Methods

Model "User"

instance.getMe() - get current account.

instance.getUser(id) - get user account from TopCord website.

instance.getUserBots(id) - get user bot list.

instance.getUserReports(id) - get list of user reports.

instance.getUserComments(id) - get list of comments which user with id posted.

Model "Bot"

instance.getBot(id) - get bot from TopCord by ID.

instance.getBotOwner(id) - get owner of bot.

instance.getBotComments(id) - get all comments of bot.

instance.getBotReports(id) - get all reports of bot.