mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 22:40:23 +08:00
18 lines
389 B
Go
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")
|
|
}
|
|
}
|
|
}
|