mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2024-12-22 20:05:34 +00:00
5d9e1a854a
[^] Fixed irritating error that occurred when FFmpeg was not found.
19 lines
310 B
Go
19 lines
310 B
Go
package modules
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"os/exec"
|
|
)
|
|
|
|
// CheckForFFmpeg looks for ffmpeg in the path
|
|
func CheckForFFmpeg() (string) {
|
|
path, err := exec.LookPath("ffmpeg")
|
|
|
|
if err != nil {
|
|
fmt.Println("Could not find FFmpeg, maybe you don't have it installed or on your PATH")
|
|
os.Exit(1)
|
|
}
|
|
return path
|
|
}
|