This commit is contained in:
cdle
2021-09-16 16:51:54 +08:00
parent cac60b4f8d
commit dd46517c90
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -33,6 +33,12 @@ var name = func() string {
}
var functions = []Function{
{
Rules: []string{"^name$"},
Handle: func(_ im.Sender) interface{} {
return name()
},
},
{
Rules: []string{"^升级$"},
Admin: true,
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func init() {
AddCommand("", []Function{
{
Rules: []string{"raw 命令"},
Rules: []string{"raw ^命令$"},
Handle: func(_ im.Sender) interface{} {
ss := []string{}
for _, f := range functions {