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 ffmpeg
and 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