plugins

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlashMessageRule

func FlashMessageRule(event leafBot.Event, bot *leafBot.Bot, state *leafBot.State) bool

func Ocr

func Ocr()

func UseCreateQrCode

func UseCreateQrCode()

UseCreateQrCode 生成二维码的插件

func UseDayImage

func UseDayImage()

func UseEchoHandle

func UseEchoHandle()

func UseFlashImage

func UseFlashImage(userID int)

当获取到闪照信息之后, 会向提供的qq号进行转发该闪照

func UseFlashImageToGroup

func UseFlashImageToGroup()

func UseMusicHandle

func UseMusicHandle()

func UseSetuHandle

func UseSetuHandle()

func UseTranslateHandle

func UseTranslateHandle()

func WebSiteScreenInit

func WebSiteScreenInit()

Types

type Music163

type Music163 struct {
	Result struct {
		Songs []struct {
			ID      int    `json:"id"`
			Name    string `json:"name"`
			Artists []struct {
				Id        int           `json:"id"`
				Name      string        `json:"name"`
				PicUrl    interface{}   `json:"picUrl"`
				Alias     []interface{} `json:"alias"`
				AlbumSize int           `json:"albumSize"`
				PicId     int           `json:"picId"`
				Img1V1Url string        `json:"img1v1Url"`
				Img1V1    int           `json:"img1v1"`
				Trans     interface{}   `json:"trans"`
			} `json:"artists"`
			Album struct {
				Id     int    `json:"id"`
				Name   string `json:"name"`
				Artist struct {
					Id        int           `json:"id"`
					Name      string        `json:"name"`
					PicUrl    interface{}   `json:"picUrl"`
					Alias     []interface{} `json:"alias"`
					AlbumSize int           `json:"albumSize"`
					PicId     int           `json:"picId"`
					Img1V1Url string        `json:"img1v1Url"`
					Img1V1    int           `json:"img1v1"`
					Trans     interface{}   `json:"trans"`
				} `json:"artist"`
				PublishTime int64    `json:"publishTime"`
				Size        int      `json:"size"`
				CopyrightId int      `json:"copyrightId"`
				Status      int      `json:"status"`
				PicId       int64    `json:"picId"`
				Mark        int      `json:"mark"`
				Alia        []string `json:"alia,omitempty"`
			} `json:"album"`
			Duration    int         `json:"duration"`
			CopyrightId int         `json:"copyrightId"`
			Status      int         `json:"status"`
			Alias       []string    `json:"alias"`
			Rtype       int         `json:"rtype"`
			Ftype       int         `json:"ftype"`
			Mvid        int         `json:"mvid"`
			Fee         int         `json:"fee"`
			RUrl        interface{} `json:"rUrl"`
			Mark        int         `json:"mark"`
		} `json:"songs"`
		SongCount int `json:"songCount"`
	} `json:"result"`
	Code int `json:"code"`
}

type MusicQQ

type MusicQQ struct {
	Code int `json:"code"`
	Data struct {
		Keyword  string        `json:"keyword"`
		Priority int           `json:"priority"`
		Qc       []interface{} `json:"qc"`
		Semantic struct {
			Curnum   int           `json:"curnum"`
			Curpage  int           `json:"curpage"`
			List     []interface{} `json:"list"`
			Totalnum int           `json:"totalnum"`
		} `json:"semantic"`
		Song struct {
			Curnum  int `json:"curnum"`
			Curpage int `json:"curpage"`
			List    []struct {
				Albumid          int    `json:"albumid"`
				Albummid         string `json:"albummid"`
				Albumname        string `json:"albumname"`
				AlbumnameHilight string `json:"albumname_hilight"`
				Alertid          int    `json:"alertid"`
				BelongCD         int    `json:"belongCD"`
				CdIdx            int    `json:"cdIdx"`
				Chinesesinger    int    `json:"chinesesinger"`
				Docid            string `json:"docid"`
				Grp              []struct {
					Albumid          int    `json:"albumid"`
					Albummid         string `json:"albummid"`
					Albumname        string `json:"albumname"`
					AlbumnameHilight string `json:"albumname_hilight"`
					Alertid          int    `json:"alertid"`
					BelongCD         int    `json:"belongCD"`
					CdIdx            int    `json:"cdIdx"`
					Chinesesinger    int    `json:"chinesesinger"`
					Docid            string `json:"docid"`
					Interval         int    `json:"interval"`
					Isonly           int    `json:"isonly"`
					Lyric            string `json:"lyric"`
					LyricHilight     string `json:"lyric_hilight"`
					MediaMid         string `json:"media_mid"`
					Msgid            int    `json:"msgid"`
					NewStatus        int    `json:"newStatus"`
					Nt               int64  `json:"nt"`
					Pay              struct {
						Payalbum      int `json:"payalbum"`
						Payalbumprice int `json:"payalbumprice"`
						Paydownload   int `json:"paydownload"`
						Payinfo       int `json:"payinfo"`
						Payplay       int `json:"payplay"`
						Paytrackmouth int `json:"paytrackmouth"`
						Paytrackprice int `json:"paytrackprice"`
					} `json:"pay"`
					Preview struct {
						Trybegin int `json:"trybegin"`
						Tryend   int `json:"tryend"`
						Trysize  int `json:"trysize"`
					} `json:"preview"`
					Pubtime int `json:"pubtime"`
					Pure    int `json:"pure"`
					Singer  []struct {
						ID          int    `json:"id"`
						Mid         string `json:"mid"`
						Name        string `json:"name"`
						NameHilight string `json:"name_hilight"`
					} `json:"singer"`
					Size128         int    `json:"size128"`
					Size320         int    `json:"size320"`
					Sizeape         int    `json:"sizeape"`
					Sizeflac        int    `json:"sizeflac"`
					Sizeogg         int    `json:"sizeogg"`
					Songid          int    `json:"songid"`
					Songmid         string `json:"songmid"`
					Songname        string `json:"songname"`
					SongnameHilight string `json:"songname_hilight"`
					StrMediaMid     string `json:"strMediaMid"`
					Stream          int    `json:"stream"`
					Switch          int    `json:"switch"`
					T               int    `json:"t"`
					Tag             int    `json:"tag"`
					Type            int    `json:"type"`
					Ver             int    `json:"ver"`
					Vid             string `json:"vid"`
					Format          string `json:"format,omitempty"`
					Songurl         string `json:"songurl,omitempty"`
				} `json:"grp"`
				Interval     int    `json:"interval"`
				Isonly       int    `json:"isonly"`
				Lyric        string `json:"lyric"`
				LyricHilight string `json:"lyric_hilight"`
				MediaMid     string `json:"media_mid"`
				Msgid        int    `json:"msgid"`
				NewStatus    int    `json:"newStatus"`
				Nt           int64  `json:"nt"`
				Pay          struct {
					Payalbum      int `json:"payalbum"`
					Payalbumprice int `json:"payalbumprice"`
					Paydownload   int `json:"paydownload"`
					Payinfo       int `json:"payinfo"`
					Payplay       int `json:"payplay"`
					Paytrackmouth int `json:"paytrackmouth"`
					Paytrackprice int `json:"paytrackprice"`
				} `json:"pay"`
				Preview struct {
					Trybegin int `json:"trybegin"`
					Tryend   int `json:"tryend"`
					Trysize  int `json:"trysize"`
				} `json:"preview"`
				Pubtime int `json:"pubtime"`
				Pure    int `json:"pure"`
				Singer  []struct {
					ID          int    `json:"id"`
					Mid         string `json:"mid"`
					Name        string `json:"name"`
					NameHilight string `json:"name_hilight"`
				} `json:"singer"`
				Size128         int    `json:"size128"`
				Size320         int    `json:"size320"`
				Sizeape         int    `json:"sizeape"`
				Sizeflac        int    `json:"sizeflac"`
				Sizeogg         int    `json:"sizeogg"`
				Songid          int    `json:"songid"`
				Songmid         string `json:"songmid"`
				Songname        string `json:"songname"`
				SongnameHilight string `json:"songname_hilight"`
				StrMediaMid     string `json:"strMediaMid"`
				Stream          int    `json:"stream"`
				Switch          int    `json:"switch"`
				T               int    `json:"t"`
				Tag             int    `json:"tag"`
				Type            int    `json:"type"`
				Ver             int    `json:"ver"`
				Vid             string `json:"vid"`
				Format          string `json:"format,omitempty"`
				Songurl         string `json:"songurl,omitempty"`
			} `json:"list"`
			Totalnum int `json:"totalnum"`
		} `json:"song"`
		Tab       int           `json:"tab"`
		Taglist   []interface{} `json:"taglist"`
		Totaltime int           `json:"totaltime"`
		Zhida     struct {
			Chinesesinger int `json:"chinesesinger"`
			Type          int `json:"type"`
		} `json:"zhida"`
	} `json:"data"`
	Message string `json:"message"`
	Notice  string `json:"notice"`
	Subcode int    `json:"subcode"`
	Time    int    `json:"time"`
	Tips    string `json:"tips"`
}

type Tran

type Tran struct {
	Type            string `json:"type"`
	ErrorCode       int    `json:"errorCode"`
	ElapsedTime     int    `json:"elapsedTime"`
	TranslateResult [][]struct {
		Src string `json:"src"`
		Tgt string `json:"tgt"`
	} `json:"translateResult"`
}

Directories

Path Synopsis
Package groupWelcome /**
Package groupWelcome /**

Jump to

Keyboard shortcuts

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