mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow.git
synced 2025-06-15 16:47:51 +00:00
🐛 修复展览详情无法获取
This commit is contained in:
parent
f417f829cc
commit
acb504a0e5
12
.github/workflows/pypi-publish.yml
vendored
12
.github/workflows/pypi-publish.yml
vendored
@ -1,15 +1,18 @@
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pypi-publish:
|
||||
name: Upload release to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
environment: release
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Set up Python
|
||||
@ -32,6 +35,3 @@ jobs:
|
||||
.
|
||||
- name: Publish distribution to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
username: __token__
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -162,4 +162,5 @@ cython_debug/
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
bot.py
|
||||
pdm.lock
|
||||
.env
|
||||
.env.*
|
@ -46,7 +46,7 @@ async def get_show_details_cmd(id: Optional[int] = None):
|
||||
await UniMessage("请输入展览ID").send()
|
||||
return
|
||||
show_details = await get_show_details(id)
|
||||
if show_details["errno"] != 0:
|
||||
if show_details["code"] != 0:
|
||||
await UniMessage("发生{}号错误".format(show_details["errno"])).send()
|
||||
return
|
||||
try:
|
||||
|
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "nonebot-plugin-acgnshow"
|
||||
version = "0.2.3.3.1"
|
||||
dynamic = ["version"]
|
||||
description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据"
|
||||
readme = "README.md"
|
||||
requires-python = "<4.0,>=3.9"
|
||||
@ -20,17 +20,24 @@ Homepage = "https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow"
|
||||
|
||||
[tool.nonebot]
|
||||
plugins = ["nonebot_plugin_acgnshow"]
|
||||
adapters = [{name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11"}]
|
||||
|
||||
|
||||
[tool.pdm]
|
||||
distribution = true
|
||||
|
||||
[tool.pdm.version]
|
||||
source = "file"
|
||||
path = "nonebot_plugin_acgnshow/__init__.py"
|
||||
source = "scm"
|
||||
tag_filter = "v*"
|
||||
tag_regex = '^v(?:\D*)?(?P<version>([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|c|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$)$'
|
||||
fallback_version = "0.1.0"
|
||||
|
||||
[tool.pdm.build]
|
||||
includes = []
|
||||
|
||||
[build-system]
|
||||
requires = ["pdm-backend"]
|
||||
build-backend = "pdm.backend"
|
||||
|
||||
[tool.ruff.lint]
|
||||
ignore = ["E402"]
|
Loading…
x
Reference in New Issue
Block a user