Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Mar 10, 2024
1 parent d22358e commit 9fb5157
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,28 @@

_😅 你有几个 🐴,这么狂? 😅_

<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
<a href="https://pdm.fming.dev">
<img src="https://img.shields.io/badge/pdm-managed-blueviolet" alt="pdm-managed">
</a>
<a href="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb">
<img src="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb.svg" alt="wakatime">
</a>

<br />

<a href="https://pydantic.dev">
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/pyd-v1-or-v2.json" alt="Pydantic Version 1 Or 2" >
</a>
<a href="./LICENSE">
<img src="https://img.shields.io/github/license/lgc2333/nonebot-plugin-fuckyou.svg" alt="license">
<img src="https://img.shields.io/github/license/lgc-NB2Dev/nonebot-plugin-fuckyou.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-fuckyou">
<img src="https://img.shields.io/pypi/v/nonebot-plugin-fuckyou.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
<a href="https://pypi.python.org/pypi/nonebot-plugin-fuckyou">
<img src="https://img.shields.io/pypi/dm/nonebot-plugin-fuckyou" alt="pypi download">
</a>
<a href="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/fc345158-9120-4888-9a92-da01d63dc670">
<img src="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/fc345158-9120-4888-9a92-da01d63dc670.svg" alt="wakatime">
</a>

</div>

Expand Down Expand Up @@ -150,6 +159,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)

## 📝 更新日志

### 0.2.0

- 适配 Pydantic V1 & V2

### 0.1.3

- 添加两个配置项
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_fuckyou/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .__main__ import get_phase
from .config import ConfigModel

__version__ = "0.1.4"
__version__ = "0.2.0"
__plugin_meta__ = PluginMetadata(
name="FuckYou",
description=get_phase(),
Expand Down
4 changes: 2 additions & 2 deletions nonebot_plugin_fuckyou/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Set

from nonebot import get_driver
from nonebot import get_plugin_config
from pydantic import BaseModel


Expand All @@ -15,4 +15,4 @@ class ConfigModel(BaseModel):
fuckyou_bl_to_wl: bool = False


config: ConfigModel = ConfigModel.parse_obj(get_driver().config.dict())
config = get_plugin_config(ConfigModel)
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nonebot-plugin-fuckyou"
version = "0.1.4"
dynamic = ["version"]
description = "A NoneBot2 plugin designed for curse users"
authors = [{ name = "student_2333", email = "[email protected]" }]
dependencies = ["nonebot2>=2.0.0", "pydantic>=1.10.0,<2"]
Expand All @@ -14,6 +14,10 @@ homepage = "https://github.com/lgc2333/nonebot-plugin-fuckyou"
[tool.pdm.build]
includes = []

[tool.pdm.version]
source = "file"
path = "nonebot_plugin_fuckyou/__init__.py"

[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
requires = ["pdm-backend"]
build-backend = "pdm.backend"

0 comments on commit 9fb5157

Please sign in to comment.