Skip to content

Vap0r1ze/DiscordBots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordBots

In order to even use the library, you must first get an api token. These can be obtained by going to the API site.


First, you must create an instance of the module by doing this:

const DiscordBots = require('discordbots')
const token = 'API TOKEN'
const dbots = new DiscordBots(token)

getBotInfo

dbots.getBotInfo(botid)
Parameter Description
botid The user ID of the bot
Returns {Promise<Object>}

getBotStats

dbots.getBotStats(botid)
Parameter Description
botid The user ID of the bot
Returns {Promise<Object>}

getAllBots

dbots.getAllBots()
Returns {Promise<Object>}

postBotStats

dbots.postBotStats(stats)
Parameter Description
botid The id of the bot
stats An object containing the bots statistics
stats.server_count The amount of guilds your bot is in
Returns null

getUserInfo

dbots.getUserInfo(userid)
Parameter Description
userid The ID of the user
Returns {Promise<Object>}

About

A library for getting/posting stats/info on users and bots on discord bots list (https://discord.bots/pw) by /abalabahaha

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published