fix(fortune): 移除今日塔罗多余提示范围

fix(check): 更新发送菜单内容
This commit is contained in:
SlyAimer 2025-02-25 11:17:06 +08:00
parent 7ea7548dfe
commit 89133147c7
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,8 @@ menu = ["/重启","/今日运势","/今日塔罗","/图","/日报","/点歌","/
"/待办", "/test","/天气","我喜欢你", "", "/待办查询", "/新建待办", "/删除待办" ,"/cf","/B站搜索", "/BV搜索", "/喜报", "/悲报", "/luxun","/鲁迅说", "/待办", "/test","/天气","我喜欢你", "", "/待办查询", "/新建待办", "/删除待办" ,"/cf","/B站搜索", "/BV搜索", "/喜报", "/悲报", "/luxun","/鲁迅说",
"/奶龙", "/repo", "/info", "/menu", "/轻小说","/本季新番","/新番观察"] "/奶龙", "/repo", "/info", "/menu", "/轻小说","/本季新番","/新番观察"]
send_menu = ["/开启ai","/关闭ai","/角色列表","/添加人设", "/更新人设", "/删除人设", "/切换人设", "/管理员注册", "/待办", "/test", "我喜欢你", "", "/menu"] send_menu = ["/menu","/今日运势","/今日塔罗","/图","/日报","/点歌","/摸摸头","/群老婆","/今日老婆","/待办","/天气",
"/待办查询", "/新建待办", "/删除待办" ,"/cf","/B站搜索", "/BV搜索", "/喜报", "/悲报","/鲁迅说","/轻小说","/本季新番","/新番观察"]
async def check_value_in_menu(message: MessageEvent) -> bool: async def check_value_in_menu(message: MessageEvent) -> bool:
value = message.get_plaintext().strip().split(" ") value = message.get_plaintext().strip().split(" ")

View file

@ -41,7 +41,7 @@ async def get_tarot(message: MessageEvent):
#extract_type : 1大阿尔克纳牌 2小阿尔克纳牌 3 混合牌组 4三角牌阵 5六芒星牌阵 6凯尔特十字牌阵 7恋人牌阵 #extract_type : 1大阿尔克纳牌 2小阿尔克纳牌 3 混合牌组 4三角牌阵 5六芒星牌阵 6凯尔特十字牌阵 7恋人牌阵
value = message.get_plaintext().strip().split(" ") value = message.get_plaintext().strip().split(" ")
if len(value) < 2 or len(value) > 2 or value[1] == "" or value[1] not in ["1","2","3","4","5"]: if len(value) < 2 or len(value) > 2 or value[1] == "" or value[1] not in ["1","2","3","4","5"]:
await tarot.finish("请输入正确的指令格式:/今日塔罗 + 数字(1-7) \n" await tarot.finish("请输入正确的指令格式:/今日塔罗 + 数字(1-5) \n"
"1 大阿尔克纳牌 \n" "1 大阿尔克纳牌 \n"
"2 小阿尔克纳牌 \n" "2 小阿尔克纳牌 \n"
"3 混合牌组 \n" "3 混合牌组 \n"