增加机器学习指令 增加机器人主人控制机器学习的权限

This commit is contained in:
2979302435 2022-06-16 20:00:15 +08:00
parent 55fc3cd3a2
commit 80c6bfc297

View File

@ -230,7 +230,7 @@ onLearningGroup = on_message(
onLearningGroup.__paimon_help__ = { onLearningGroup.__paimon_help__ = {
"usage": "@派蒙 <说怪话>", "usage": "@派蒙 <说怪话>",
"introduce": "开启派蒙在该群的机器学习能力", "introduce": "开启派蒙在该群的机器学习能力",
"priority": 99 "priority": 94
} }
@onLearningGroup.handle() @onLearningGroup.handle()
async def _(bot: Bot, event: GroupMessageEvent): async def _(bot: Bot, event: GroupMessageEvent):
@ -243,14 +243,14 @@ async def _(bot: Bot, event: GroupMessageEvent):
#群组关闭 #群组关闭
offLearningGroup = on_message( offLearningGroup = on_message(
rule = to_me() & keyword("派蒙学习关闭","不准说怪话"), rule = to_me() & keyword("派蒙学习关闭","不准说怪话"),
priority = 4, priority = 3,
block = True, block = True,
permission=permission.GROUP_ADMIN | permission.GROUP_OWNER | SUPERUSER permission=permission.GROUP_ADMIN | permission.GROUP_OWNER | SUPERUSER
) )
offLearningGroup.__paimon_help__ = { offLearningGroup.__paimon_help__ = {
"usage": "@派蒙 <不准说怪话>", "usage": "@派蒙 <不准说怪话>",
"introduce": "关闭派蒙在该群的机器学习能力", "introduce": "关闭派蒙在该群的机器学习能力",
"priority": 99 "priority": 95
} }
@offLearningGroup.handle() @offLearningGroup.handle()
async def _(bot: Bot, event: GroupMessageEvent): async def _(bot: Bot, event: GroupMessageEvent):
@ -270,7 +270,7 @@ fun_msg = on_message(
fun_msg.__paimon_help__ = { fun_msg.__paimon_help__ = {
"usage": "@派蒙 <发癫>", "usage": "@派蒙 <发癫>",
"introduce": "派蒙喝醉了在群里发癫", "introduce": "派蒙喝醉了在群里发癫",
"priority": 99 "priority": 96
} }
@fun_msg.handle() @fun_msg.handle()
async def funmsg(bot: Bot, event: GroupMessageEvent): async def funmsg(bot: Bot, event: GroupMessageEvent):
@ -294,7 +294,7 @@ stop_fun_msg = on_message(
stop_fun_msg.__paimon_help__ = { stop_fun_msg.__paimon_help__ = {
"usage": "@派蒙 <不准发癫>", "usage": "@派蒙 <不准发癫>",
"introduce": "让派蒙恢复正常", "introduce": "让派蒙恢复正常",
"priority": 99 "priority": 97
} }
@stop_fun_msg.handle() @stop_fun_msg.handle()
async def stopfunmsg(bot: Bot, event: GroupMessageEvent): async def stopfunmsg(bot: Bot, event: GroupMessageEvent):
@ -318,7 +318,7 @@ upLearning = on_message(
upLearning.__paimon_help__ = { upLearning.__paimon_help__ = {
"usage": "@派蒙 <派蒙快学>", "usage": "@派蒙 <派蒙快学>",
"introduce": "增强派蒙的学习能力", "introduce": "增强派蒙的学习能力",
"priority": 99 "priority": 98
} }
@upLearning.handle() @upLearning.handle()
async def _(bot: Bot, event: GroupMessageEvent): async def _(bot: Bot, event: GroupMessageEvent):