diff --git a/modules/ask/formatting.py b/modules/ask/formatting.py index 3638f866..58ebd97a 100644 --- a/modules/ask/formatting.py +++ b/modules/ask/formatting.py @@ -14,6 +14,7 @@ async def generate_latex(formula: str): return await img.read() + async def generate_code_snippet(code: str, language: str): async with aiohttp.ClientSession() as session: async with session.post(url='https://sourcecodeshots.com/api/image', data=json.dumps({ diff --git a/modules/core/locales/en_us.json b/modules/core/locales/en_us.json index b7730f1f..187c6ffc 100644 --- a/modules/core/locales/en_us.json +++ b/modules/core/locales/en_us.json @@ -124,7 +124,7 @@ "core.message.petal.no_petals": "群组内的花瓣不足,若需要添加花瓣,请在此处申请:", "core.message.petal.self": "当前本群组的花瓣数为:${petal}。", "core.message.ping.detail": "System startup time: ${system_boot_time}\nRobot is running: ${bot_running_time}\nPython version: ${python_version}\nProcessor model: ${cpu_brand}\nCurrent processor usage: ${cpu_usage}%\nPhysical memory: ${ram}M Utilized: ${ram_percent}%\nSwap memory: ${swap}M Utilized: ${swap_percent}%\nDisk capacity: ${disk_space}G/${disk_space_total}G", - "core.message.ping.failed": "Unable to fetch.", + "core.message.ping.failed": "Failed to fetch.", "core.message.prefix.add.already": "This command already exists in the custom prefix list.", "core.message.prefix.add.success": "Custom command prefix has been added: ${prefix}\nHelp documents will be displayed by default using this prefix.", "core.message.prefix.list": "Custom command prefix: ${prefixes}", diff --git a/modules/core/locales/zh_cn.json b/modules/core/locales/zh_cn.json index 27bf242f..577c5189 100644 --- a/modules/core/locales/zh_cn.json +++ b/modules/core/locales/zh_cn.json @@ -124,7 +124,7 @@ "core.message.petal.no_petals": "群组内的花瓣不足,若需要添加花瓣,请在此处申请:", "core.message.petal.self": "当前本群组的花瓣数为:${petal}。", "core.message.ping.detail": "系统启动时间:${system_boot_time}\n机器人已运行:${bot_running_time}\nPython 版本:${python_version}\n处理器型号:${cpu_brand}\n当前处理器使用率:${cpu_usage}%\n物理内存:${ram}M 使用率:${ram_percent}%\nSwap 内存:${swap}M 使用率:${swap_percent}%\n磁盘容量:${disk_space}G/${disk_space_total}G", - "core.message.ping.failed": "无法获取。", + "core.message.ping.failed": "获取失败。", "core.message.prefix.add.already": "此命令前缀已存在于自定义前缀列表。", "core.message.prefix.add.success": "已添加自定义命令前缀:${prefix}", "core.message.prefix.list": "自定义命令前缀:${prefixes}", diff --git a/modules/core/locales/zh_tw.json b/modules/core/locales/zh_tw.json index 4d460d5f..8691af3d 100644 --- a/modules/core/locales/zh_tw.json +++ b/modules/core/locales/zh_tw.json @@ -124,7 +124,7 @@ "core.message.petal.no_petals": "群組內的花瓣不足,若需要增加花瓣,請在此處申請:", "core.message.petal.self": "目前本群組的花瓣數為:${petal}。", "core.message.ping.detail": "系統啟動時間:${system_boot_time}\n機器人已運行:${bot_running_time}\nPython 版本:${python_version}\n處理器型號:${cpu_brand}\n目前處理器使用率:${cpu_usage}%\n物理記憶體:${ram}M 使用率:${ram_percent}%\nSwap 記憶體:${swap}M 使用率:${swap_percent}%\n磁碟容量:${disk_space}G/${disk_space_total}G", - "core.message.ping.failed": "無法取得。", + "core.message.ping.failed": "取得失敗。", "core.message.prefix.add.already": "此指令前綴已存在於自訂前綴列表。", "core.message.prefix.add.success": "已新增自訂指令前綴:${prefix}", "core.message.prefix.list": "自訂指令前綴:${prefixes}", diff --git a/modules/dice/locales/zh_tw.json b/modules/dice/locales/zh_tw.json index 3c51f1fd..8cbe7b9e 100644 --- a/modules/dice/locales/zh_tw.json +++ b/modules/dice/locales/zh_tw.json @@ -1,7 +1,7 @@ { "dice.help": "投擲指定骰子,可指定投骰次數與 dc 判斷判定。", "dice.help.desc": "隨機骰子。", - "dice.help.rule": "修改 dc 的判定规则。", + "dice.help.rule": "修改 dc 的判定規則。", "dice.help.option.dc": "在每一次投擲輸出結果時進行判定,若結果大於 dc 則判定成功,否則判定失敗。", "dice.help.option.klx": "表示輸出其最小之 x 個骰子點數之和", "dice.help.option.kx": "表示輸出其最大之 x 個骰子點數之和", @@ -38,7 +38,7 @@ "dice.message.error.value.too_long": "骰子多項式項數超過限制。", "dice.message.output": "你掷得的結果是:", "dice.message.output.too_long": "數量過大,已省略 ${length} 個資料。", - "dice.message.rule.disable": "判定规则已更改为:DnD。", - "dice.message.rule.enable": "判定规则已更改为:CoC。", + "dice.message.rule.disable": "判定規則已更改為:DnD。", + "dice.message.rule.enable": "判定規則已更改為:CoC。", "dice.message.too_long": "輸出過長……" } \ No newline at end of file diff --git a/modules/hitokoto/locales/zh_tw.json b/modules/hitokoto/locales/zh_tw.json index 76eab053..d347ebaf 100644 --- a/modules/hitokoto/locales/zh_tw.json +++ b/modules/hitokoto/locales/zh_tw.json @@ -10,7 +10,7 @@ "hitokoto.message.type.e": "原創", "hitokoto.message.type.f": "來自網路", "hitokoto.message.type.g": "其他", - "hitokoto.message.type.h": "影视", + "hitokoto.message.type.h": "影視", "hitokoto.message.type.i": "詩詞", "hitokoto.message.type.j": "網易雲", "hitokoto.message.type.k": "哲學", diff --git a/modules/maimai/locales/en_us.json b/modules/maimai/locales/en_us.json index 295a7835..ffef4c19 100644 --- a/modules/maimai/locales/en_us.json +++ b/modules/maimai/locales/en_us.json @@ -59,5 +59,6 @@ "maimai.message.song.prompt": "以下是可能的结果:", "maimai.message.song.sd": "${diff} ${level} (${ds})\nTAP:${tap}\nHOLD:${hold}\nSLIDE:${slide}\nBREAK:${brk}\n谱师:${charter}", "maimai.message.too_much": "结果过多(${length} 条),请缩小搜索范围。", - "maimai.message.user_not_found": "未找到此玩家,请确保此玩家的用户名和查分器中的用户名相同。" + "maimai.message.user_not_found": "未找到此玩家,请确保此玩家的用户名和查分器中的用户名相同。", + "maimai.message.user_unbound": "未绑定用户,请前往查分器并绑定你的 QQ 号。\n查分器地址:https://www.diving-fish.com/maimaidx/prober" } \ No newline at end of file diff --git a/modules/maimai/locales/zh_cn.json b/modules/maimai/locales/zh_cn.json index b6f5d50d..182d4dd5 100644 --- a/modules/maimai/locales/zh_cn.json +++ b/modules/maimai/locales/zh_cn.json @@ -61,4 +61,4 @@ "maimai.message.too_much": "结果过多(${length} 条),请缩小搜索范围。", "maimai.message.user_not_found": "未找到此玩家,请确保此玩家的用户名和查分器中的用户名相同。", "maimai.message.user_unbound": "未绑定用户,请前往查分器并绑定你的 QQ 号。\n查分器地址:https://www.diving-fish.com/maimaidx/prober" -} +} \ No newline at end of file diff --git a/modules/maimai/locales/zh_tw.json b/modules/maimai/locales/zh_tw.json index 904289ef..a8a03548 100644 --- a/modules/maimai/locales/zh_tw.json +++ b/modules/maimai/locales/zh_tw.json @@ -59,5 +59,6 @@ "maimai.message.song.prompt": "以下是可能的結果:", "maimai.message.song.sd": "${diff} ${level} (${ds})\nTAP:${tap}\nHOLD:${hold}\nSLIDE:${slide}\nBREAK:${brk}\n譜師:${charter}", "maimai.message.too_much": "結果過多(${length} 條),請縮小搜尋範圍。", - "maimai.message.user_not_found": "未找到此使用者,請確認此使用者的名稱和查分器中的名稱相同。" + "maimai.message.user_not_found": "未找到此使用者,請確認此使用者的名稱和查分器中的名稱相同。", + "maimai.message.user_unbound": "未绑定用户,请前往查分器并绑定你的 QQ 号。\n查分器地址:https://www.diving-fish.com/maimaidx/prober" } \ No newline at end of file diff --git a/modules/user/locales/zh_tw.json b/modules/user/locales/zh_tw.json index afd5a757..a2724b21 100644 --- a/modules/user/locales/zh_tw.json +++ b/modules/user/locales/zh_tw.json @@ -1,6 +1,6 @@ { "user.help.desc": "取得一個 MediaWiki 使用者的訊息。", - "user.help.option.p": "以图片形式生成。", + "user.help.option.p": "以圖像形式生成。", "user.message.blocked": "正在被封禁中!", "user.message.blocked.blocked_by": "被 ${blocked_by} 封禁,", "user.message.blocked.blocked_expires": "到",