update
This commit is contained in:
@@ -102,7 +102,9 @@ func handleMessage(sender Sender) {
|
|||||||
if function.Admin && !sender.IsAdmin() {
|
if function.Admin && !sender.IsAdmin() {
|
||||||
sender.Delete()
|
sender.Delete()
|
||||||
sender.Disappear()
|
sender.Disappear()
|
||||||
|
if sender.GetImType() != "wx" || sender.GetImType() != "qq" {
|
||||||
sender.Reply("没有权限操作")
|
sender.Reply("没有权限操作")
|
||||||
|
}
|
||||||
sender.Finish()
|
sender.Finish()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ func initSys() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Rules: []string{"raw ^命令$"},
|
Rules: []string{"raw ^命令$"},
|
||||||
|
Admin: true,
|
||||||
Handle: func(s Sender) interface{} {
|
Handle: func(s Sender) interface{} {
|
||||||
s.Disappear()
|
s.Disappear()
|
||||||
ss := []string{}
|
ss := []string{}
|
||||||
|
|||||||
Reference in New Issue
Block a user