1.0.5 • Published 2 years ago

firewallgg-passport v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

FirewallGG

This is a package created to allow users to check if people are banned through a multitude of registered ban databases in a systems.json file.

Example

const readline = require('readline'); // This is just for testing purposes, not actually required
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});

const firewallgg = require('firewallgg-passport'); // Import firewallgg-passport
const firewall = new firewallgg(false); // Boolean for debugMode
firewall.boot() // Boot firewall systems.json file

rl.question('Please provide a user Id to search! ', async function (input) { // Ask a question in the terminal
    let data = await firewall.check(input); // Check their input in the firewallgg passport
    if(data[0]) { // If a ban exists
        console.log(`That user Id is banned in the following systems:\n${JSON.stringify(data, null, 4) + '\n'}`) // Log there ban
    } else { // Otherwise
        console.log(`That user Id is not banned anywhere.`) // Don't log any bans
    }
    rl.close(); // End the questionaire
});

Types (IGNORE)

  • 1 = Discord Security Bot
  • 2 = Stronger Together

Types are used to differ from JSON object returns (banned: true |vs| ban: true |vs| active: true)

Credits

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago