diff --git a/src/nonebot_plugins/liteyuki_status/status.py b/src/nonebot_plugins/liteyuki_status/status.py index 2d73f34..7ea9f24 100644 --- a/src/nonebot_plugins/liteyuki_status/status.py +++ b/src/nonebot_plugins/liteyuki_status/status.py @@ -73,7 +73,9 @@ yanlun_path = "https://nd.liteyuki.icu/api/v3/share/content/Xpue?path=null" @scheduler.scheduled_job("cron", hour=4) async def every_day_update(): ulang = Language(get_default_lang_code(), "zh-WY") - nonebot.logger.success(ulang.get("yanlun.refresh.success", COUNT=update_yanlun())) + nonebot.logger.success( + ulang.get("yanlun.refresh.success", COUNT=await update_yanlun()) + ) async def update_yanlun(): @@ -196,7 +198,11 @@ async def _( # print(result.options) ulang = get_user_lang(event_utils.get_user_id(event)) # type: ignore if result.options["refresh"].value: - await update_yanlun() + await yanlun.send( + UniMessage.text( + ulang.get("yanlun.refresh.success", COUNT=await update_yanlun()) + ) + ) if result.options["count"].value: authors = [ ( diff --git a/src/nonebot_plugins/pasyaut_plugin_upskin/__init__.py b/src/nonebot_plugins/pasyaut_plugin_upskin/__init__.py index e69de29..9a6c13a 100644 --- a/src/nonebot_plugins/pasyaut_plugin_upskin/__init__.py +++ b/src/nonebot_plugins/pasyaut_plugin_upskin/__init__.py @@ -0,0 +1,25 @@ + +# from nonebot.plugin import PluginMetadata + +# __author__ = "金羿Eilles" +# __plugin_meta__ = PluginMetadata( +# name="渡秋资源上传", +# description="", +# usage=( +# "MARKDOWN## 渡秋星霁团队资源投稿\n" +# "《我的世界:中国版》资源投稿\n" +# "### 用法\n" +# "- `/submit\n" +# # "- `/stctcvt` 各类结构互转\n" +# # "- `/stctbld` 文本指令转结构\n" +# # "- `/stctbld` 文本指令转结构\n" +# ), +# type="application", +# homepage="https://gitee.com/TriM-Organization/Musicreater", +# extra={ +# "liteyuki": True, +# "toggleable" : True, +# "default_enable" : True, +# } +# ) + diff --git a/src/nonebot_plugins/pasyaut_plugin_upskin/submit.py b/src/nonebot_plugins/pasyaut_plugin_upskin/submit.py new file mode 100644 index 0000000..e0ea5c1 --- /dev/null +++ b/src/nonebot_plugins/pasyaut_plugin_upskin/submit.py @@ -0,0 +1,49 @@ + + +import nonebot +import nonebot.adapters +import nonebot.drivers +import nonebot.rule + +from nonebot.permission import SUPERUSER +from nonebot.adapters.onebot.v11.event import ( + GroupUploadNoticeEvent, + GroupMessageEvent, + PrivateMessageEvent, +) + +from nonebot_plugin_alconna import ( + on_alconna, + Alconna, + # Subcommand, + UniMessage, + Option, + store_true, + # store_false, + # store_value, + Arparma, + Args, +) + +from src.utils.base.ly_typing import T_Bot, T_MessageEvent + + +on_convert_help = on_alconna( + command=Alconna("投稿帮助"), + aliases={ + "查看投稿帮助", + "投稿help", + "submit_help", + "sbm_hlp", + "sbmhlp", + }, + rule=nonebot.rule.to_me(), +) + + +@on_convert_help.handle() +async def _( + event: GroupMessageEvent, + bot: T_Bot, +): + pass diff --git a/src/nonebot_plugins/trimo_plugin_msctconverter/__init__.py b/src/nonebot_plugins/trimo_plugin_msctconverter/__init__.py index e9ef88c..bd8134b 100644 --- a/src/nonebot_plugins/trimo_plugin_msctconverter/__init__.py +++ b/src/nonebot_plugins/trimo_plugin_msctconverter/__init__.py @@ -1,6 +1,5 @@ - - from nonebot.plugin import PluginMetadata +from liteyuki.plugin import PluginMetadata as LiteyukiPM, PluginType from .msctexec import * from .mspvexec import * @@ -9,10 +8,10 @@ __plugin_meta__ = PluginMetadata( name="伶伦转换器", description="", usage=( - "MARKDOWN## 伶伦转换器\n" - "《我的世界》音乐转换,结构生成与转换\n" - "### 用法\n" - "- `/msctcvt` 转换MIDI音乐\n" + "MARKDOWN## 伶伦转换器\n" + "《我的世界》音乐转换,结构生成与转换\n" + "### 用法\n" + "- `/msctcvt` 转换MIDI音乐\n" # "- `/stctcvt` 各类结构互转\n" # "- `/stctbld` 文本指令转结构\n" # "- `/stctbld` 文本指令转结构\n" @@ -20,9 +19,30 @@ __plugin_meta__ = PluginMetadata( type="application", homepage="https://gitee.com/TriM-Organization/Musicreater", extra={ - "liteyuki": True, - "toggleable" : False, - "default_enable" : True, - } + "liteyuki": True, + "toggleable": False, + "default_enable": True, + }, ) + +__liteyuki_plugin_meta__ = LiteyukiPM( + name="伶伦转换器", + description="", + usage=( + "MARKDOWN## 伶伦转换器\n" + "《我的世界》音乐转换,结构生成与转换\n" + "### 用法\n" + "- `/msctcvt` 转换MIDI音乐\n" + # "- `/stctcvt` 各类结构互转\n" + # "- `/stctbld` 文本指令转结构\n" + # "- `/stctbld` 文本指令转结构\n" + ), + type=PluginType.APPLICATION, + homepage="https://gitee.com/TriM-Organization/Musicreater", + extra={ + "liteyuki": True, + "toggleable": False, + "default_enable": True, + }, +) diff --git a/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py b/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py index 192169f..0399f40 100644 --- a/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py +++ b/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py @@ -40,7 +40,7 @@ import nonebot.drivers import nonebot.rule # from nonebot.params import CommandArg -from nonebot.permission import SUPERUSER, SuperUser +from nonebot.permission import SUPERUSER from nonebot.adapters.onebot.v11.event import ( GroupUploadNoticeEvent, GroupMessageEvent,