MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin-Playground / findgroupmode

Method findgroupmode

plugin/chatgpt/model.go:118–127  ·  view source on GitHub ↗
(gid int64)

Source from the content-addressed store, hash-verified

116}
117
118func (db *model) findgroupmode(gid int64) (content string, err error) {
119 db.Lock()
120 defer db.Unlock()
121 var m mode
122 err = db.Find("note", &m, "where groupid = "+strconv.FormatInt(gid, 10))
123 if err != nil {
124 return
125 }
126 return m.Content, nil
127}
128
129func (db *model) findformode() (string, error) {
130 db.Lock()

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected