11
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ class JX3Service:
|
||||
|
||||
return return_data
|
||||
|
||||
async def richangyuche(self,server: str) -> Dict[str, Any]:
|
||||
async def richangyuche(self) -> Dict[str, Any]:
|
||||
"""日常预测"""
|
||||
return_data = self._init_return_data()
|
||||
|
||||
|
||||
@@ -149,11 +149,11 @@ class Jx3ApiPlugin(Star):
|
||||
logger.error(f"功能函数执行错误: {e}")
|
||||
yield event.plain_result("猪脑过载,请稍后再试")
|
||||
|
||||
@jx3.command("月历")
|
||||
async def jx3_richangyuche(self, event: AstrMessageEvent,server: str = "" ,num: int = 0):
|
||||
"""剑三 月历 服务器 """
|
||||
@jx3.command("日常预测")
|
||||
async def jx3_richangyuche(self, event: AstrMessageEvent):
|
||||
"""剑三 日常预测 服务器 """
|
||||
try:
|
||||
data= await self.jx3fun.richangyuche(await self.serverdefault(server))
|
||||
data= await self.jx3fun.richangyuche()
|
||||
if data["code"] == 200:
|
||||
yield event.plain_result(data["data"])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user