vtbmusic

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVTBMusicCDN

func GetVTBMusicCDN(keyword string) (addr string)

GetVTBMusicCDN : Get VTBMusic CDN Detail Info

func Load added in v1.9.0

func Load()

Load : 加载配置

func TenKeywordsExtraction added in v1.9.0

func TenKeywordsExtraction(params string) (result string)

TenKeywordsExtraction :请求腾讯NLP API,传参格式为{"Text":"text"}

func VTBMusic

func VTBMusic(MsgInfo *botstruct.MsgInfo, BotConfig *botstruct.BotConfig)

VTBMusic : The main function of VTBMusic

Types

type MusicInfo added in v1.9.0

type MusicInfo struct {
	MusicName  string
	MusicID    string
	MusicVocal string
	Cover      string
	MusicURL   string
	MusicCDN   string
}

MusicInfo includes the info of a music.

type MusicList added in v1.9.0

type MusicList struct {
	Total int
	Data  []gjson.Result
}

MusicList includes the result of searching for musics.

func GetHotMusicList added in v1.10.0

func GetHotMusicList() (VTBMusicList *MusicList)

GetHotMusicList : Get the hot music.

func GetVTBMusicDetail

func GetVTBMusicDetail(VTBMusicID string) (MusicInfo *MusicList)

GetVTBMusicDetail : Get music info by using music id.

func GetVTBMusicList

func GetVTBMusicList(Keyword string, Method string) (VTBMusicList *MusicList)

GetVTBMusicList : Get VTBMusic Detail Info.

Method: MusicName,VtbName

type VtbsList added in v1.10.0

type VtbsList struct {
	Total int
	Data  []gjson.Result
}

VtbsList includes the result of searching for Vtbs.

func GetVTBsList added in v1.10.0

func GetVTBsList(VtbsName string) (VList *VtbsList)

GetVTBsList : Get VTB Detail Info.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL