0.0.1 • Published 7 years ago

dbans-unlimited v0.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

dbans-limited

A free, unlimited, and quick way to lookup users on DiscordList.net Bans without an API key and also get reason and username data.

#Install npm install --save dbans-unlimited

#Usage

const dbans = require("dbans-unlimited")

//Get a array of all the IDs of banned users 
dbans.getIDs().then(list => console.log(list)).catch(console.error)

//Get an array of all banned users (with reason, username, and proof data)
dbans.getFullList().then(list => console.log(list)).catch(console.error)

//Get all listing.php data
dbans.getAllData().then(data => console.log(data)).catch(console.error)

//Lookup a user and get proof, reason, and username data
dbans.lookup("some user id").then(res => {
    if(res) {
        console.log(res)
    } else {
        console.log("User isn't banned on DiscordList.net Bans")
    }
})

//Look if a user is banned on DBans (true/false) 

dbans.isBanned("some user id").then(isBanned => console.log(`User is ${isBanned ? "banned on DiscordList.net" : " not banned"}`))

#How does it work?

dbans-unlimited works by sending an HTTP GET request to listing.php on the bans.discordlist.net website. This PHP file contains every user banned and their ID, also with reason and username data.

With dbans-unlimited, you don't need an API key to use DBans on your bot. It's simple and up-to-date.

0.0.1

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago