MCPcopy
hub / github.com/FloatTech/ZeroBot-Plugin / dlrange

Function dlrange

plugin/gif/context.go:73–87  ·  view source on GitHub ↗
(prefix string, end int, wg *sync.WaitGroup, exit func(error))

Source from the content-addressed store, hash-verified

71}
72
73func dlrange(prefix string, end int, wg *sync.WaitGroup, exit func(error)) []string {
74 if file.IsNotExist(datapath + `materials/` + prefix) {
75 err := os.MkdirAll(datapath+`materials/`+prefix, 0755)
76 if err != nil {
77 exit(err)
78 return nil
79 }
80 }
81 c := make([]string, end)
82 for i := range c {
83 wg.Add(1)
84 go dlchan(prefix+"/"+strconv.Itoa(i)+".png", &c[i], wg, exit)
85 }
86 return c
87}
88
89// 新的上下文
90func newContext(user int64, atUser int64) *context {

Callers 15

alikeFunction · 0.85
marriageFunction · 0.85
anyasukiFunction · 0.85
alwaysLikeFunction · 0.85
decentKissFunction · 0.85
chinaFlagFunction · 0.85
dontTouchFunction · 0.85
interviewFunction · 0.85
needFunction · 0.85
paintFunction · 0.85
painterFunction · 0.85
perfectFunction · 0.85

Calls 1

dlchanFunction · 0.85

Tested by

no test coverage detected