diff --git a/nonebot_plugin_moegoe/__init__.py b/nonebot_plugin_moegoe/__init__.py index 7aa40b9..5a976c8 100644 --- a/nonebot_plugin_moegoe/__init__.py +++ b/nonebot_plugin_moegoe/__init__.py @@ -322,4 +322,4 @@ async def _(matcher: Matcher, matched: Tuple[Any, ...] = RegexGroup()): try: await matcher.finish(record) except ActionFailed as e: - await matcher.finish("moegoe语音发送失败:" + str(e)) \ No newline at end of file + await matcher.finish("moegoe语音发送失败:" + str(e)) diff --git a/nonebot_plugin_moegoe/profile.toml b/nonebot_plugin_moegoe/profile.toml index 8e6be69..64312fc 100644 --- a/nonebot_plugin_moegoe/profile.toml +++ b/nonebot_plugin_moegoe/profile.toml @@ -66,4 +66,4 @@ regex = "^让(中配|英配|日配)?([^0-9.]+)(以(.+))?说(国语|汉语|汉文 replace = [[',', ','], ['.', '。'], ['!', '!'], ['?', '?'], ['0', '零'], ['1', '一'], ['2', '二'], ['3', '三'], ['4', '四'], ['5', '五'], ['6', '六'], ['7', '七'], ['8', '八'], ['9', '九'], ] nation = {'中配'='ZH','英配'='EN','日配'='JP'} lang = {'国语'='ZH','汉语'='ZH','汉文'='ZH','中文'='ZH','Chinese'='ZH','英语'='EN','英文'='EN','English'='EN','日语'='JP','日文'='JP','日本语'='JP','Japanese'='JP'} -character_list = '请到API界面查看:https://v2.genshinvoice.top/' \ No newline at end of file +character_list = '请到API界面查看:https://v2.genshinvoice.top/' diff --git a/nonebot_plugin_moegoe/utils.py b/nonebot_plugin_moegoe/utils.py index 252836e..ea5c2cb 100644 --- a/nonebot_plugin_moegoe/utils.py +++ b/nonebot_plugin_moegoe/utils.py @@ -36,4 +36,4 @@ def write_file(path: Path, data, binary=True): if binary: path.write_bytes(data) else: - path.write_text(data, encoding='UTF-8') \ No newline at end of file + path.write_text(data, encoding='UTF-8') diff --git a/pyproject.toml b/pyproject.toml index ecfe807..675e55f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,4 +24,4 @@ gradio_client = "^0.7.0" [build-system] requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" \ No newline at end of file +build-backend = "poetry.core.masonry.api"