ZeroBot-Plugin/plugin_gif/logo.go
fumiama 606aec4ec1 🚚 🎉 📝 合并 gif
2022-01-11 16:09:33 +08:00

18 lines
389 B
Go

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")
}
}
}