mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-15 03:44:49 +08:00
⭐小更一些提示内容
This commit is contained in:
parent
6347100cf5
commit
4ff1822a4e
@ -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 = [
|
||||
(
|
||||
|
@ -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,
|
||||
# }
|
||||
# )
|
||||
|
49
src/nonebot_plugins/pasyaut_plugin_upskin/submit.py
Normal file
49
src/nonebot_plugins/pasyaut_plugin_upskin/submit.py
Normal 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
|
@ -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,
|
||||
},
|
||||
)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user