mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
🎨 改进代码样式
This commit is contained in:
parent
5c620d6268
commit
feeeb63e52
@ -2,10 +2,6 @@ package ymgal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/antchfx/htmlquery"
|
||||
_ "github.com/fumiama/sqlite3" // import sql
|
||||
"github.com/jinzhu/gorm"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"math/rand"
|
||||
"net/url"
|
||||
"os"
|
||||
@ -13,6 +9,11 @@ import (
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/antchfx/htmlquery"
|
||||
_ "github.com/fumiama/sqlite3" // import sql
|
||||
"github.com/jinzhu/gorm"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// gdb 得分数据库
|
||||
@ -165,7 +166,6 @@ func getPicID(pageNumber int, pictureType string) {
|
||||
emoticonIDList = append(emoticonIDList, picID)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func updatePic() {
|
||||
@ -239,7 +239,6 @@ func storeCgPic(picIDStr string) {
|
||||
if err != nil {
|
||||
log.Errorln("[ymgal]:", err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func storeEmoticonPic(picIDStr string) {
|
||||
|
||||
@ -2,14 +2,15 @@
|
||||
package ymgal
|
||||
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"github.com/FloatTech/zbputils/control"
|
||||
"github.com/FloatTech/zbputils/control/order"
|
||||
"github.com/FloatTech/zbputils/ctxext"
|
||||
"github.com/FloatTech/zbputils/file"
|
||||
zero "github.com/wdvxdr1123/ZeroBot"
|
||||
"github.com/wdvxdr1123/ZeroBot/message"
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user