JSPM

gif-discord-crash-detector

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q26948F
    • License MIT

    Scan and detect most common video/gif crashing discord app

    Package Exports

    • gif-discord-crash-detector

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gif-discord-crash-detector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Discord video/gif crash detector

    This package check if the provided URL file is detected as crashing discord app.

    Install

    npm install -save gif-discord-crash-detector

    Important

    You need to have ffmpegand ffprobe installed, otherwise it won't work.

    Usage

    const crashDetector = require("gif-discord-crash-detector");
    
    crashDetector.DisableLog();
    crashDetector.EnableLog(); // Allow you to enable/disable scan logs
    let crashFound = await crashDetector.isCrashVideo('SOME_URL_FILE_HERE', 'temp_file_name_you_want.mp4');
    if (crashFound) {
        // Your stuff here (remove user message, notice your discord staff, ...)
    }

    Author

    • ArseeniK#1112

    License

    MIT