Documentation ¶
Index ¶
- func CreateNewDecoderIfEnviable(dcaBytes *[]byte, playedBytes int, options *dca.EncodeOptions) (decoder *dca.Decoder, readerIndex int, err error)
- func GetRule34UrlImageFromTags(tags []string, limit int) (urls []string, err error)
- func GetVideoIdFromLink(link string) string
- func GetYoutubeStreamMemory(args []string, session disgord.Session, channelID disgord.Snowflake) (track *cache.MusicBotTrack, err error)
- func LogErrorCommand()
- func PlayDCAAudio(guildID disgord.Snowflake, channelID disgord.Snowflake, ...) (err error)
- type Rule34Posts
- type Rule34Tag
- type Video
- type YoutubeSearchQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVideoIdFromLink ¶
func GetYoutubeStreamMemory ¶
func LogErrorCommand ¶
func LogErrorCommand()
Types ¶
type Rule34Posts ¶
type Rule34Tag ¶
type Rule34Tag struct { XMLName xml.Name `xml:"tag"` ID string `xml:"id,attr"` MD5 string `xml:"md5,attr"` FileName string `xml:"file_name,attr"` FileUrl string `xml:"file_url,attr"` Height string `xml:"height,attr"` Width string `xml:"width,attr"` PreviewHeight string `xml:"preview_height,attr"` PreviewWidth string `xml:"preview_width,attr"` Rating string `xml:"rating,attr"` Date string `xml:"date,attr"` Tags string `xml:"tags,attr"` Source string `xml:"source,attr"` Score string `xml:"score,attr"` Author string `xml:"author,attr"` }
type Video ¶
type Video struct { ID string `json:"encrypted_id"` Title string `json:"title"` Description string `json:"description"` Thumbnail string `json:"thumbnail"` Added string `json:"added"` TimeCreated time.Time `json:"time_created"` Rating float64 `json:"rating"` Likes uint `json:"likes"` Dislikes uint `json:"dislikes"` Views string `json:"views"` Comments string `json:"comments"` Duration string `json:"duration"` LengthSeconds time.Duration `json:"length_seconds"` Author string `json:"author"` UserID string `json:"user_id"` Privacy string `json:"privacy"` CategoryID uint `json:"category_id"` IsHD bool `json:"is_hd"` IsCC bool `json:"is_cc"` CCLicense bool `json:"cc_license"` Keywords []string `json:"keywords"` }
func ParseRawVideo ¶
type YoutubeSearchQuery ¶
func SearchYoutubeVideos ¶
func SearchYoutubeVideos(keywords []string, page string) (query *YoutubeSearchQuery, err error)
Click to show internal directories.
Click to hide internal directories.