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

Method insertmode

plugin/chatgpt/model.go:73–85  ·  view source on GitHub ↗
(modename, content string)

Source from the content-addressed store, hash-verified

71)
72
73func (db *model) insertmode(modename, content string) (err error) {
74 db.Lock()
75 defer db.Unlock()
76 m := mode{
77 Mode: modename,
78 Content: content,
79 }
80 err = db.Insert("mode", &m)
81 if err != nil {
82 return
83 }
84 return
85}
86
87func (db *model) findmode(modename string) (content string, err error) {
88 db.Lock()

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected