go-bot/workers/emm.go

33 lines
641 B
Go
Raw Permalink Normal View History

2024-04-01 09:42:29 +08:00
package workers
import (
"go-bot/config"
"slices"
)
func init() {
plugins := config.GetConfig()["PLUGINS"].([]interface{})
if slices.Contains(plugins, "emm") {
RegisterWorkerFactory("emm", func(parms []string, uid, gid, role, mid, rawMsg string) Worker {
return &Emm{
StdAns: NewStdAns(parms, uid, gid, role, mid, rawMsg),
}
})
}
}
type Emm struct {
2024-04-01 09:42:29 +08:00
*StdAns
}
func (a *Emm) GetMsg() string {
return "-1"
// a.BlockGroup = []string{"874769998"}
2024-04-01 09:42:29 +08:00
// fmt.Println(a.CheckPermission())
// if a.CheckPermission() != "0" {
// return a.CheckPermission()
// }
// return "咱也不知道" + a.Parms[0] + "是啥呢~"
2024-04-01 09:42:29 +08:00
}