Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-03-19 13:00:32 +08:00 committed by GitHub
parent 4fe53728e5
commit 7191511cfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 113 additions and 23 deletions

View file

@ -0,0 +1,78 @@
{
"arcaea.errcode.-1": "Invalid username or friend ID",
"arcaea.errcode.-2": "Invalid friend ID",
"arcaea.errcode.-3": "User not found",
"arcaea.errcode.-4": "Friend list is full",
"arcaea.errcode.-5": "Invalid song name or song ID",
"arcaea.errcode.-6": "Invalid song ID",
"arcaea.errcode.-7": "Song not recorded",
"arcaea.errcode.-8": "Too many records",
"arcaea.errcode.-9": "Invalid Difficulty",
"arcaea.errcode.-10": "Invalid recent records",
"arcaea.errcode.-11": "Failed to allocate Arcaea account",
"arcaea.errcode.-12": "Failed to clear friend object",
"arcaea.errcode.-13": "Failed to add object",
"arcaea.errcode.-14": "The song has no Beyond difficulty",
"arcaea.errcode.-15": "No play record",
"arcaea.errcode.-16": "User ranking banned",
"arcaea.errcode.-17": "Failed to query best 30 record",
"arcaea.errcode.-18": "Update server not available",
"arcaea.errcode.-19": "Invalid partner",
"arcaea.errcode.-20": "File does not exist",
"arcaea.errcode.-23": "Internal error occurred",
"arcaea.errcode.-233": "Unknown error occurred",
"arcaea.message.assets.not_found": "No resource files found! Please place the apk files of Arcaea to the robot's assets directory and rename them to \"arc.apk\", use \"~arcaea\" to initialize resources.",
"arcaea.message.failed": "Failed to query.",
"arcaea.message.failed.errcode": "Failed to query: ",
"arcaea.message.failed.fetch": "Failed to fetch.",
"arcaea.message.invalid.friendcode.format": "Please enter the correct friend ID!",
"arcaea.message.invalid.friendcode.non_digital": "Friend ID must be 9 digits!",
"arcaea.message.official": "Use Official API",
"arcaea.message.official.fetch.failed": "Failed to fetch using the official API.",
"arcaea.message.official.fetch.failed.fallback": "Failed to fetch using the official API. Trying to use unofficial API.",
"arcaea.message.unofficial": "Use Unofficial API",
"arcaea.message.unofficial.fetch.failed": "Failed to query using the unofficial API.",
"arcaea.message.user.unbound": "Unbound user. Please bind user by \"~arcaea bind <friendcode>\".",
"arcaea.message.no_webrender": "No webrender configured, this command cannot be used.",
"arcaea.help": "Queries about Arcaea.",
"arcaea.b30.help": "Query the best 30 list of Arcaea user. (Automatically select to use API)",
"arcaea.b30.message.success": "Result\nBest 30${b30} | Recent 10${r10}\nBest 30 last 5 list: \n${last5list}",
"arcaea.info.help": "Query the play record of Arcaea user. (Automatically select to use API)",
"arcaea.info.message.result": "Recent play record of ${username} (${potential}): \n${trackname} (${difficulty})\nScore: ${score}\nPure: ${pure} (${shiny_pure})\nFar: ${far}\nLost: ${lost}\nPotential: ${realptt} -> ${ptt}\nTime: ${time_played} (UTC+8)",
"arcaea.info.message.result.none": "This user has no play record.",
"arcaea.song.help": "Query information about the music chart of Arcaea.",
"arcaea.song.message.invalid.difficulty": "Please enter correct chart difficulty!",
"arcaea.song.message.difficulty.not_found": "This chart difficulty does not exist.",
"arcaea.song.message.difficulty_rating": "Level: ",
"arcaea.song.message.artist": "Music: ",
"arcaea.song.message.jacket_designer": "Illustration: ",
"arcaea.song.message.chart_designer": "Chart design: ",
"arcaea.song.message.note": "Notes: ",
"arcaea.song.message.bpm": "BPM: ",
"arcaea.song.message.set_friendly": "Songs by pack: ",
"arcaea.song.message.time": "Length: ",
"arcaea.song.message.time.second": " sec",
"arcaea.song.message.date": "Added date: ",
"arcaea.song.message.world_unlock": "Requires unlock via World: ",
"arcaea.song.message.remote_download": "Requires download: ",
"arcaea.song.message.best": "Best score: ",
"arcaea.song.message.side.colorless": "Colorless",
"arcaea.song.message.side.conflict": "Conflict",
"arcaea.song.message.side.light": "Light",
"arcaea.bind.help": "Bind Arcaea user.",
"arcaea.bind.message.success": "Binding successed: ${username} (${friendcode})",
"arcaea.bind.message.success.but.failed.fetch.username": "Binding successed, but could not fetch user information. Please check your own command available.",
"arcaea.bind.message.failed": "Binding failed, please try binding with your friend ID.",
"arcaea.unbind.help": "Unbind user.",
"arcaea.unbind.message.success": "Unbind succeeded.",
"arcaea.initialize.message.not_found": "arc.apk not found!",
"arcaea.initialize.message.success": "Initialized successed!",
"arcaea.download.help": "Get the latest version of game apk.",
"arcaea.download.message.success": "Current latest version is ${version}.\nDownload: ${url}",
"arcaea.random.help": "Random a track.",
"arcaea.rank.help.free": "View the current rank of the free packs.",
"arcaea.rank.help.paid": "View the current rank of the paid packs.",
"arcaea.switch.help": "Switch the API interface that is used by default when querying.",
"arcaea.switch.message.success.official": "Switch to official API.",
"arcaea.switch.message.success.unofficial": "Switch to unofficial API."
}

View file

@ -1,27 +1,27 @@
{
"arcaea.errcode.-1": "非法的用户名或好友代码",
"arcaea.errcode.-2": "非法的好友代码",
"arcaea.errcode.-3": "未找到用户",
"arcaea.errcode.-4": "好友列表已",
"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.-1": "無效的使用者名稱或好友 ID",
"arcaea.errcode.-2": "無效的好友 ID",
"arcaea.errcode.-3": "找不到使用者",
"arcaea.errcode.-4": "好友列表已滿",
"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.-12": "清除好友对象失败",
"arcaea.errcode.-13": "添加对象失败",
"arcaea.errcode.-14": "该歌曲无 Beyond 难度",
"arcaea.errcode.-15": "无游玩记录",
"arcaea.errcode.-16": "用户排行榜被封禁",
"arcaea.errcode.-17": "查询 B30 记录失败",
"arcaea.errcode.-18": "更新器不可用",
"arcaea.errcode.-19": "非法的搭档",
"arcaea.errcode.-20": "文件不存在",
"arcaea.errcode.-23": "发生了内部错误",
"arcaea.errcode.-233": "发生了未知错误",
"arcaea.message.assets.not_found": "未找到資源文件! 請放置一份 Arcaea 的 apk 文件到機器人的 assets 目錄並重命名為 arc.apk 後,使用 ~arcaea initialize 初始化資源。",
"arcaea.errcode.-14": "此歌曲無 Beyond 難度",
"arcaea.errcode.-15": "無遊玩記錄",
"arcaea.errcode.-16": "使用者排行榜被封鎖",
"arcaea.errcode.-17": "查詢 B30 記錄失敗",
"arcaea.errcode.-18": "更新服器不可用",
"arcaea.errcode.-19": "無效的搭檔",
"arcaea.errcode.-20": "檔案不存在",
"arcaea.errcode.-23": "發生了內部錯誤",
"arcaea.errcode.-233": "發生了不明錯誤",
"arcaea.message.assets.not_found": "未找到資源檔案! 請放置一份 Arcaea 的 apk 檔案到機器人的 assets 目錄並重命名為 arc.apk 後,使用 ~arcaea initialize 初始化資源。",
"arcaea.message.failed": "查詢失敗。",
"arcaea.message.failed.errcode": "查詢失敗:",
"arcaea.message.failed.fetch": "取得失敗。",

View file

@ -20,6 +20,6 @@ async def main(msg: Bot.MessageSession):
lst = []
for i in res:
lst += [f'{i["count"]}. [{i["category"]}] {i["title"]} - {i["author"]} @ {i["time"]}\n{i["url"]}']
message = '\n'.join(lst) + msg.locale.t('mcbbs_news.message.more') + \
message = '\n'.join(lst) + '\n' + msg.locale.t('mcbbs_news.message.more') + \
Url('https://www.mcbbs.net/forum-news-1.html').url
await msg.finish(message)

View file

@ -0,0 +1,6 @@
{
"mcbbs_news.help": "Get the latest news of MCBBS News board. (The news not highlighted by moderators will be ignored)",
"mcbbs_news.message.days_ago": " days ago",
"mcbbs_news.message.more": "More information: ",
"mcbbs_news.message.not_found": "No news found."
}

View file

@ -1,5 +1,5 @@
{
"mcbbs_news.help": "获得 MCBBS 幻翼快讯版最新新闻(未被版主高亮过的新闻将被忽略)",
"mcbbs_news.help": "获得 MCBBS 幻翼块讯版最新新闻。(未被版主高亮过的新闻将被忽略)",
"mcbbs_news.message.days_ago": " 天前",
"mcbbs_news.message.more": "更多资讯详见:",
"mcbbs_news.message.not_found": "没有找到任何新闻。"

View file

@ -0,0 +1,6 @@
{
"mcbbs_news.help": "取得 MCBBS 幻翼塊訊板最新新聞。(未被板主高亮的新聞將被忽略)",
"mcbbs_news.message.days_ago": " 天前",
"mcbbs_news.message.more": "更多資訊詳見:",
"mcbbs_news.message.not_found": "沒有找到任何新聞。"
}