mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 18:20:27 +00:00
🚚 🎉 📝 合并 gif
This commit is contained in:
17
plugin_gif/logo.go
Normal file
17
plugin_gif/logo.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package plugin_gif
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func (c *context) prepareLogos(s ...string) {
|
||||
for i, v := range s {
|
||||
_, err := strconv.Atoi(v)
|
||||
if err != nil {
|
||||
download("https://gchat.qpic.cn/gchatpic_new//--"+strings.ToUpper(v)+"/0", c.usrdir+strconv.Itoa(i)+".gif")
|
||||
} else {
|
||||
download("http://q4.qlogo.cn/g?b=qq&nk="+v+"&s=640", c.usrdir+strconv.Itoa(i)+".gif")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user