From ef5866343df9e3c5c4d15f9020e8c25556a8586f Mon Sep 17 00:00:00 2001 From: snowykami Date: Sun, 20 Oct 2024 04:12:17 +0800 Subject: [PATCH] :sparkles: add: nonebot-plugin-gotify --- .../nonebot_plugins/nonebot_plugin_gotify/adapter_ctx.py | 2 +- .../nonebot/nonebot_plugins/nonebot_plugin_gotify/config.py | 2 +- .../nonebot/nonebot_plugins/nonebot_plugin_gotify/gotify.py | 3 --- .../nonebot/nonebot_plugins/nonebot_plugin_gotify/on.py | 0 .../nonebot/nonebot_plugins/nonebot_plugin_gotify/r.txt | 0 5 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/on.py delete mode 100644 src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/r.txt diff --git a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/adapter_ctx.py b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/adapter_ctx.py index 30f2fed63..59e71e677 100644 --- a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/adapter_ctx.py +++ b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/adapter_ctx.py @@ -1,4 +1,4 @@ -from pydantic import BaseModel, field_validator +from pydantic import BaseModel class Context(BaseModel): diff --git a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/config.py b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/config.py index 2bd057c61..31c08c4b8 100644 --- a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/config.py +++ b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/config.py @@ -1,5 +1,5 @@ from nonebot import get_plugin_config -from pydantic import BaseModel, field_validator +from pydantic import BaseModel NOTICE = "notice" MESSAGE = "message" diff --git a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/gotify.py b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/gotify.py index d8166fe13..d6bd1213f 100644 --- a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/gotify.py +++ b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/gotify.py @@ -1,11 +1,8 @@ import asyncio from asyncio import Future -from collections.abc import Coroutine from typing import Any -import aiohttp from magicoca import Chan -from nonebot import logger from pydantic import BaseModel from .config import plugin_config diff --git a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/on.py b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/on.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/r.txt b/src/liteyuki_plugins/nonebot/nonebot_plugins/nonebot_plugin_gotify/r.txt deleted file mode 100644 index e69de29bb..000000000