discord-exploits/modules/ffmpeg-check.go

19 lines
308 B
Go
Raw Normal View History

package modules
import (
"fmt"
"os"
"os/exec"
)
// CheckForFFmpeg looks for ffmpeg in the path
2021-05-19 07:29:40 +00:00
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
}