mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-13 02:30:26 +00:00
💩👌 make lint happy
This commit is contained in:
@@ -70,7 +70,7 @@ func init() {
|
||||
|
||||
}
|
||||
|
||||
// 请求api
|
||||
// soutuapi 请求api
|
||||
func soutuapi(keyword string) *AutoGenerated {
|
||||
|
||||
url := "https://api.pixivel.moe/pixiv?type=search&page=0&mode=partial_match_for_tags&word=" + keyword
|
||||
@@ -97,7 +97,7 @@ func soutuapi(keyword string) *AutoGenerated {
|
||||
return result
|
||||
}
|
||||
|
||||
//从json里的30条数据中随机获取一条返回
|
||||
// Suiji 从json里的30条数据中随机获取一条返回
|
||||
func Suiji() int {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
return rand.Intn(30)
|
||||
|
||||
Reference in New Issue
Block a user