MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / sendmsg

Method sendmsg

plugin/manager/timer/msg.go:8–16  ·  view source on GitHub ↗
(grp int64, ctx *zero.Ctx)

Source from the content-addressed store, hash-verified

6)
7
8func (t *Timer) sendmsg(grp int64, ctx *zero.Ctx) {
9 ctx.Event = new(zero.Event)
10 ctx.Event.GroupID = grp
11 if t.URL == "" {
12 ctx.SendChain(atall, message.Text(t.Alert))
13 } else {
14 ctx.SendChain(atall, message.Text(t.Alert), message.Image(t.URL).Add("cache", "0"))
15 }
16}

Callers 2

judgeHMMethod · 0.95
RegisterTimerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected