From 91b14d568c27b1f7aa3dad01b4e49c89bc02b845 Mon Sep 17 00:00:00 2001 From: snowy Date: Sun, 24 Mar 2024 23:09:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20require()=E6=8F=92=E4=BB=B6=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/{ => plugins}/liteyuki_eventpush.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename liteyuki/{ => plugins}/liteyuki_eventpush.py (98%) diff --git a/liteyuki/liteyuki_eventpush.py b/liteyuki/plugins/liteyuki_eventpush.py similarity index 98% rename from liteyuki/liteyuki_eventpush.py rename to liteyuki/plugins/liteyuki_eventpush.py index bb8b58bd..f67e29fe 100644 --- a/liteyuki/liteyuki_eventpush.py +++ b/liteyuki/plugins/liteyuki_eventpush.py @@ -1,15 +1,19 @@ from typing import Optional import nonebot -from nonebot import on_message -from arclet.alconna import Arparma, Alconna, Args, Option, Subcommand, Arg +from nonebot import on_message, require + from nonebot.plugin import PluginMetadata -from nonebot_plugin_alconna import on_alconna + from liteyuki.utils.data import LiteModel from liteyuki.utils.message import send_markdown from liteyuki.utils.ly_typing import T_Bot, T_MessageEvent from liteyuki.utils.data import Database +require("nonebot_plugin_alconna") +from nonebot_plugin_alconna import on_alconna +from arclet.alconna import Arparma, Alconna, Args, Option, Subcommand, Arg + class Node(LiteModel): bot_id: str