32 lines
641 B
Go
32 lines
641 B
Go
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 {
|
|
*StdAns
|
|
}
|
|
|
|
func (a *Emm) GetMsg() string {
|
|
return "-1"
|
|
// a.BlockGroup = []string{"874769998"}
|
|
|
|
// fmt.Println(a.CheckPermission())
|
|
// if a.CheckPermission() != "0" {
|
|
// return a.CheckPermission()
|
|
// }
|
|
// return "咱也不知道" + a.Parms[0] + "是啥呢~"
|
|
}
|