Notify President Madagascar

    @gcommands/plugin-blacklist
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    GCommands Plugin Blacklist

    Official plugin for GCommands


    NPM Banner


    Installation

    Install with npm / yarn / pnpm:

    npm install @gcommands/plugin-blacklist
    yarn add @gcommands/plugin-blacklist
    pnpm add @gcommands/plugin-blacklist

    Informations

    // index.js / LruCache Provider (recommended)
    const { Plugins, GClient } = require('gcommands');
    const { MongoDBProvider } = require('gcommands/dist/providers/MongoDBProvider');
    
    const client = new GClient({
        database: new MongoDBProvider(process.env.mongodb_uri);
    })
    
    Plugins.search(__dirname)
    const { BlacklistManager } = require('@gcommands/plugin-blacklist');
    
    BlacklistManager.setBlacklist(client, userId, true); // blacklisted
    BlacklistManager.setBlacklist(client, userId, false); // unblacklisted

    Install

    npm i @gcommands/plugin-blacklist

    DownloadsWeekly Downloads

    15

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    6.76 kB

    Total Files

    8

    Last publish

    Collaborators

    • xhyrom