Socket
Socket
Sign inDemoInstall

firewallgg-passport

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    firewallgg-passport

A discord.gg firewall passport system, allowing you to check if a user Id is banned across multiple ban databases and get a simple return statement with information about the user.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

  • Made by @Hyperz
  • Repository

Keywords

FAQs

Last updated on 22 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc