Documentation ¶
Index ¶
- Variables
- func CreateDCAFile(path, url, startTime string, duration int) (*os.File, *os.File, error)
- func DeleteFile(filename string) error
- func DownloadFileFromURL(name, url string) (*os.File, error)
- func HashFile(filename string) (string, error)
- func LoadSound(filepath string) ([][]byte, error)
- func MP3ToDCA(path string, f *os.File) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateDCAFile ¶
Converts and AAC file to a DCA file, file that can be streamed to discord VoiceChannel. Returns a the DCA file and an MP3 file that is needed to be sent as an embed to a TextChannel.
func DeleteFile ¶
Delete a file based on the supplied filename
func DownloadFileFromURL ¶
Download youtube video
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.