Update main.py

This commit is contained in:
SCUOP 2022-06-16 21:37:46 +08:00 committed by GitHub
parent 7405f605c7
commit 83cd30d0aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,7 +322,7 @@ upLearning.__paimon_help__ = {
} }
@upLearning.handle() @upLearning.handle()
async def _(bot: Bot, event: GroupMessageEvent): async def _(bot: Bot, event: GroupMessageEvent):
if Chat.answer_threshold == 1: if Chat.speak_threshold == 1:
Chat.answer_threshold = Chat.speak_threshold Chat.answer_threshold = Chat.speak_threshold
await upLearning.finish("派蒙已经学满贯了") await upLearning.finish("派蒙已经学满贯了")
else: else:
@ -344,10 +344,10 @@ downLearning.__paimon_help__ = {
} }
@downLearning.handle() @downLearning.handle()
async def _(bot: Bot, event: GroupMessageEvent): async def _(bot: Bot, event: GroupMessageEvent):
if Chat.answer_threshold == 6: if Chat.speak_threshold == 6:
Chat.answer_threshold = Chat.speak_threshold Chat.answer_threshold = Chat.speak_threshold
await downLearning.finish("派蒙不说话就是了o( ̄ヘ ̄o)") await downLearning.finish("派蒙不说话就是了o( ̄ヘ ̄o)")
else: else:
Chat.speak_threshold += 1 Chat.speak_threshold += 1
Chat.answer_threshold = Chat.speak_threshold Chat.answer_threshold = Chat.speak_threshold
await downLearning.finish("知道了知道了,旅行者就是嫌派蒙吵了") await downLearning.finish("知道了知道了,旅行者就是嫌派蒙吵了")