From 5cfb1a8fec460eaeb0d9db2fd7948db6acf959b2 Mon Sep 17 00:00:00 2001 From: qsc Date: Tue, 11 Nov 2025 12:41:51 +0800 Subject: [PATCH] 11 --- core/cless_jx3.py | 2 +- main.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/cless_jx3.py b/core/cless_jx3.py index ab25005..31ff7db 100644 --- a/core/cless_jx3.py +++ b/core/cless_jx3.py @@ -112,7 +112,7 @@ class JX3Function: # 处理返回数据 try: result_msg = f"剑网三最近技改\n" - for i, item in enumerate(data[:2], 1): + for i, item in enumerate(data[:1], 1): result_msg += f"{i}. {item.get('title', '无标题')}\n" result_msg += f"时间:{item.get('time', '未知时间')}\n" result_msg += f"链接:{item.get('url', '无链接')}\n\n" diff --git a/main.py b/main.py index 380ab86..3e2bc96 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ class Jx3ApiPlugin(Star): """可选择实现异步的插件初始化方法,当实例化该插件类之后会自动调用该方法。""" # 数据库配置 db_config = { - 'host': '154.201.70.116', + 'host': '38.12.28.24', 'port': 3306, 'user': 'asrtbot', 'password': 'qsc123456', @@ -57,7 +57,7 @@ class Jx3ApiPlugin(Star): pass @jx3.command("日常") - async def jx3_richang(self, event: AstrMessageEvent,server: str = "眉间雪",num: int = 0): + async def jx3_richang(self, event: AstrMessageEvent,server: str = "梦江南",num: int = 0): """剑三 日常 服务器 天数""" try: data= await self.jx3fun.richang(server,num) @@ -71,7 +71,7 @@ class Jx3ApiPlugin(Star): yield event.plain_result("猪脑过载,请稍后再试") @jx3.command("沙盘") - async def jx3_shapan(self, event: AstrMessageEvent,server: str = "眉间雪"): + async def jx3_shapan(self, event: AstrMessageEvent,server: str = "梦江南"): """剑三 沙盘 服务器""" try: data= await self.jx3fun.shapan(server) @@ -116,7 +116,7 @@ class Jx3ApiPlugin(Star): @jx3.command("金价") - async def jx3_jinjia(self, event: AstrMessageEvent,server: str = "眉间雪"): + async def jx3_jinjia(self, event: AstrMessageEvent,server: str = "梦江南"): """剑三 金价 服务器""" try: data= await self.jx3fun.jinjia(server) @@ -132,7 +132,7 @@ class Jx3ApiPlugin(Star): @jx3.command("奇遇") - async def jx3_qiyu(self, event: AstrMessageEvent,adventureName: str = "阴阳两界", serverName: str = "眉间雪"): + async def jx3_qiyu(self, event: AstrMessageEvent,adventureName: str = "阴阳两界", serverName: str = "梦江南"): """剑三 奇遇 奇遇名称 服务器""" try: data= await self.jx3fun.qiyu(adventureName,serverName)