新增取消管理员功能 更新菜单
This commit is contained in:
parent
cd697545e0
commit
1d70e1fa65
@ -61,7 +61,7 @@ return reply(
|
|||||||
回复 丨 屏蔽
|
回复 丨 屏蔽
|
||||||
更新账号 | 清理过期账号
|
更新账号 | 清理过期账号
|
||||||
取消屏蔽 | 任务列表
|
取消屏蔽 | 任务列表
|
||||||
设置管理员
|
设置管理员 | 取消管理员
|
||||||
———————————
|
———————————
|
||||||
京东机器人
|
京东机器人
|
||||||
]
|
]
|
||||||
|
|||||||
@ -311,6 +311,15 @@ var codeSignals = []CodeSignal{
|
|||||||
return "已设置管理员"
|
return "已设置管理员"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Command: []string{"取消管理员"},
|
||||||
|
Admin: true,
|
||||||
|
Handle: func(sender *Sender) interface{} {
|
||||||
|
ctt := sender.JoinContens()
|
||||||
|
db.Delete(&UserAdmin{Content: ctt})
|
||||||
|
return "已取消管理员"
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Command: []string{"赌一把"},
|
Command: []string{"赌一把"},
|
||||||
Handle: func(sender *Sender) interface{} {
|
Handle: func(sender *Sender) interface{} {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user