rename
This commit is contained in:
parent
e8ba8aa65f
commit
09487002a0
2 changed files with 34 additions and 34 deletions
|
@ -30,7 +30,7 @@ class WithErrCode(Exception):
|
|||
'b30 unofficial [<friendcode>] {{arcaea.message.unofficial}}')
|
||||
async def _(msg: Bot.MessageSession):
|
||||
if not os.path.exists(assets_path):
|
||||
await msg.finish(msg.locale.t("arcaea.assets.not_found"))
|
||||
await msg.finish(msg.locale.t("arcaea.message.assets.not_found"))
|
||||
query_code = None
|
||||
prefer_uses = msg.options.get('arc_api', None)
|
||||
official = msg.parsed_msg.get('official', False)
|
||||
|
@ -211,11 +211,11 @@ async def _(msg: Bot.MessageSession):
|
|||
async def _(msg: Bot.MessageSession):
|
||||
assets_apk = os.path.abspath('./assets/arc.apk')
|
||||
if not os.path.exists(assets_apk):
|
||||
await msg.finish(msg.locale.t("arcaea.initialize.not_found"))
|
||||
await msg.finish(msg.locale.t("arcaea.initialize.message.not_found"))
|
||||
return
|
||||
result = await arcb30init()
|
||||
if result:
|
||||
await msg.finish(msg.locale.t("arcaea.initialize.success"))
|
||||
await msg.finish(msg.locale.t("arcaea.initialize.message.success"))
|
||||
|
||||
|
||||
@arc.command('download {{arcaea.download.help}}')
|
||||
|
|
|
@ -3,56 +3,56 @@
|
|||
"arcaea.errcode.-2": "非法的好友代码",
|
||||
"arcaea.errcode.-3": "未找到用户",
|
||||
"arcaea.errcode.-4": "好友列表已满",
|
||||
"arcaea.errcode.-5": "非法的歌曲名或歌曲ID",
|
||||
"arcaea.errcode.-6": "非法的歌曲ID",
|
||||
"arcaea.errcode.-5": "非法的歌曲名或歌曲 ID",
|
||||
"arcaea.errcode.-6": "非法的歌曲 ID",
|
||||
"arcaea.errcode.-7": "歌曲未记录",
|
||||
"arcaea.errcode.-8": "记录过多",
|
||||
"arcaea.errcode.-9": "非法的难度",
|
||||
"arcaea.errcode.-10": "非法的近期记录数",
|
||||
"arcaea.errcode.-11": "分配Arcaea账户失败",
|
||||
"arcaea.errcode.-11": "分配 Arcaea 账户失败",
|
||||
"arcaea.errcode.-12": "清除好友对象失败",
|
||||
"arcaea.errcode.-13": "添加对象失败",
|
||||
"arcaea.errcode.-14": "该歌曲无Beyond难度",
|
||||
"arcaea.errcode.-14": "该歌曲无 Beyond 难度",
|
||||
"arcaea.errcode.-15": "无游玩记录",
|
||||
"arcaea.errcode.-16": "用户排行榜被封禁",
|
||||
"arcaea.errcode.-17": "查询B30记录失败",
|
||||
"arcaea.errcode.-17": "查询 B30 记录失败",
|
||||
"arcaea.errcode.-18": "更新服务器不可用",
|
||||
"arcaea.errcode.-19": "非法的搭档",
|
||||
"arcaea.errcode.-20": "文件不存在",
|
||||
"arcaea.errcode.-23": "发生了内部错误",
|
||||
"arcaea.errcode.-233": "发生了未知错误",
|
||||
"arcaea.assets.not_found": "未找到资源文件!请放置一枚arcaea的apk到机器人的assets目录并重命名为arc.apk后,使用~arcaea initialize初始化资源。",
|
||||
"arcaea.message.assets.not_found": "未找到资源文件!请放置一份 Arcaea 的 apk 文件到机器人的 assets 目录并重命名为 arc.apk 后,使用 ~arcaea initialize 初始化资源。",
|
||||
"arcaea.message.failed.fetch": "获取失败。",
|
||||
"arcaea.message.invalid.friendcode.format": "请输入正确的好友码!",
|
||||
"arcaea.message.invalid.friendcode.non_digital": "好友码必须是9位数字!",
|
||||
"arcaea.message.official": "使用官方API",
|
||||
"arcaea.message.official.fetch.failed": "使用官方API获取失败。",
|
||||
"arcaea.message.official.fetch.failed.fallback": "使用官方API获取失败,尝试使用非官方接口。",
|
||||
"arcaea.message.unofficial": "使用非官方API",
|
||||
"arcaea.message.unofficial.fetch.failed": "使用非官方API查询失败!",
|
||||
"arcaea.message.user.unbound": "未绑定用户,请使用~arcaea bind <friendcode>绑定一个用户。",
|
||||
"arcaea.message.no_webrender": "未配置webrender,无法使用此命令。",
|
||||
"arcaea.help": "查询Arcaea相关内容。",
|
||||
"arcaea.b30.help": "查询一个Arcaea用户的b30列表(自动选择使用API)",
|
||||
"arcaea.b30.message.success": "获取结果\nB30: {b30} | R10: {r10}\nB30倒5列表:\n{last5list}",
|
||||
"arcaea.info.help": "查询一个Arcaea用户的最近游玩记录(自动选择使用API)",
|
||||
"arcaea.song.help": "查询一首Arcaea谱面的信息",
|
||||
"arcaea.message.invalid.friendcode.non_digital": "好友码必须是 9 位数字!",
|
||||
"arcaea.message.official": "使用官方 API",
|
||||
"arcaea.message.official.fetch.failed": "使用官方 API 获取失败。",
|
||||
"arcaea.message.official.fetch.failed.fallback": "使用官方 API 获取失败,尝试使用非官方接口。",
|
||||
"arcaea.message.unofficial": "使用非官方 API",
|
||||
"arcaea.message.unofficial.fetch.failed": "使用非官方 API 查询失败!",
|
||||
"arcaea.message.user.unbound": "未绑定用户,请使用 ~arcaea bind <friendcode> 绑定一个用户。",
|
||||
"arcaea.message.no_webrender": "未配置 webrender,无法使用此命令。",
|
||||
"arcaea.help": "查询 Arcaea 相关内容。",
|
||||
"arcaea.b30.help": "查询 Arcaea 用户的 b30 列表。(自动选择使用 API)",
|
||||
"arcaea.b30.message.success": "获取结果\nB30: {b30} | R10: {r10}\nB30倒 5 列表:\n{last5list}",
|
||||
"arcaea.info.help": "查询 Arcaea 用户的最近游玩记录。(自动选择使用API)",
|
||||
"arcaea.song.help": "查询一首 Arcaea 谱面的信息。",
|
||||
"arcaea.song.message.invalid.difficulty": "请输入正确的谱面难度!",
|
||||
"arcaea.bind.help": "绑定一个Arcaea用户",
|
||||
"arcaea.bind.help": "绑定 Arcaea 用户。",
|
||||
"arcaea.bind.message.success": "绑定成功:${username} (${friendcode})",
|
||||
"arcaea.bind.message.success.but.failed.fetch.username": "绑定成功,但是无法获取用户信息。请自行检查命令是否可用。",
|
||||
"arcaea.bind.message.failed": "绑定失败,请尝试使用好友码绑定。",
|
||||
"arcaea.unbind.help": "解绑用户",
|
||||
"arcaea.unbind.help": "解绑用户。",
|
||||
"arcaea.unbind.message.success": "解绑成功。",
|
||||
"arcaea.initialize.not_found": "未找到arc.apk!",
|
||||
"arcaea.initialize.success": "成功初始化!",
|
||||
"arcaea.download.help": "获取最新版本的游戏apk",
|
||||
"arcaea.download.message.success": "目前的最新版本为${version}。\n下载地址${url}",
|
||||
"arcaea.random.help": "随机一首曲子",
|
||||
"arcaea.rank.help.free": "查看当前免费包游玩排行",
|
||||
"arcaea.rank.help.paid": "查看当前付费包游玩排行",
|
||||
"arcaea.switch.help": "切换查询时默认优先使用的API接口",
|
||||
"arcaea.switch.message.success.official": "已切换为官方API。",
|
||||
"arcaea.switch.message.success.unofficial": "已切换为非官方API。"
|
||||
"arcaea.initialize.message.not_found": "未找到 arc.apk!",
|
||||
"arcaea.initialize.message.success": "成功初始化!",
|
||||
"arcaea.download.help": "获取最新版本的游戏 apk。",
|
||||
"arcaea.download.message.success": "目前的最新版本为 ${version}。\n下载地址:${url}",
|
||||
"arcaea.random.help": "随机一首曲子。",
|
||||
"arcaea.rank.help.free": "查看当前免费包游玩排行。",
|
||||
"arcaea.rank.help.paid": "查看当前付费包游玩排行。",
|
||||
"arcaea.switch.help": "切换查询时默认优先使用的 API 接口。",
|
||||
"arcaea.switch.message.success.official": "已切换为官方 API。",
|
||||
"arcaea.switch.message.success.unofficial": "已切换为非官方 API。"
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue