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');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
const firewallgg = require('firewallgg-passport');
const firewall = new firewallgg(false);
firewall.boot()
rl.question('Please provide a user Id to search! ', async function (input) {
let data = await firewall.check(input);
if(data[0]) {
console.log(`That user Id is banned in the following systems:\n${JSON.stringify(data, null, 4) + '\n'}`)
} else {
console.log(`That user Id is not banned anywhere.`)
}
rl.close();
});
Types (IGNORE)
1
= Discord Security Bot2
= Stronger Together
Types are used to differ from JSON object returns (banned: true |vs| ban: true |vs| active: true)
Credits