Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Jul 6, 2024
1 parent 8bb36e9 commit 926e6f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_multincm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"▶ Bot 会自动解析你发送的网易云链接\n" if config.ncm_auto_resolve else ""
)

__version__ = "1.1.0.post1"
__version__ = "1.1.0.post2"
__plugin_meta__ = PluginMetadata(
name="MultiNCM",
description="网易云多选点歌",
Expand Down
8 changes: 7 additions & 1 deletion nonebot_plugin_multincm/config.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
from typing import Annotated, Optional, Tuple

from cookit.pyd import get_model_with_config
from nonebot import get_plugin_config
from nonebot.compat import PYDANTIC_V2
from pydantic import AnyHttpUrl, BaseModel

BaseConfigModel = (
get_model_with_config({"coerce_numbers_to_str": True}) if PYDANTIC_V2 else BaseModel
)

class ConfigModel(BaseModel):

class ConfigModel(BaseConfigModel):
# login
ncm_ctcode: int = 86
ncm_phone: Optional[str] = None
Expand Down

0 comments on commit 926e6f8

Please sign in to comment.