小更一些提示内容

This commit is contained in:
EillesWan 2024-10-12 11:58:43 +08:00
parent 6347100cf5
commit 4ff1822a4e
5 changed files with 113 additions and 13 deletions

View File

@ -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 = [
(

View File

@ -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,
# }
# )

View File

@ -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

View File

@ -1,6 +1,5 @@
from nonebot.plugin import PluginMetadata
from liteyuki.plugin import PluginMetadata as LiteyukiPM, PluginType
from .msctexec import *
from .mspvexec import *
@ -23,6 +22,27 @@ __plugin_meta__ = PluginMetadata(
"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,
},
)

View File

@ -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,