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
14
.github/workflows/pypi-publish.yml
vendored
14
.github/workflows/pypi-publish.yml
vendored
@ -1,15 +1,18 @@
|
|||||||
name: Publish
|
name: Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types:
|
||||||
- '*'
|
- published
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pypi-publish:
|
pypi-publish:
|
||||||
name: Upload release to PyPI
|
name: Upload release to PyPI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: release
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
@ -31,7 +34,4 @@ jobs:
|
|||||||
--outdir dist/
|
--outdir dist/
|
||||||
.
|
.
|
||||||
- name: Publish distribution to PyPI
|
- name: Publish distribution to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
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.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
bot.py
|
bot.py
|
||||||
pdm.lock
|
.env
|
||||||
|
.env.*
|
@ -46,7 +46,7 @@ async def get_show_details_cmd(id: Optional[int] = None):
|
|||||||
await UniMessage("请输入展览ID").send()
|
await UniMessage("请输入展览ID").send()
|
||||||
return
|
return
|
||||||
show_details = await get_show_details(id)
|
show_details = await get_show_details(id)
|
||||||
if show_details["errno"] != 0:
|
if show_details["code"] != 0:
|
||||||
await UniMessage("发生{}号错误".format(show_details["errno"])).send()
|
await UniMessage("发生{}号错误".format(show_details["errno"])).send()
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nonebot-plugin-acgnshow"
|
name = "nonebot-plugin-acgnshow"
|
||||||
version = "0.2.3.3.1"
|
dynamic = ["version"]
|
||||||
description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据"
|
description = "Nonebot2插件,从哔哩哔哩会员购获取简易展览数据"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = "<4.0,>=3.9"
|
requires-python = "<4.0,>=3.9"
|
||||||
@ -20,17 +20,24 @@ Homepage = "https://github.com/LiteyukiStudio/nonebot-plugin-acgnshow"
|
|||||||
|
|
||||||
[tool.nonebot]
|
[tool.nonebot]
|
||||||
plugins = ["nonebot_plugin_acgnshow"]
|
plugins = ["nonebot_plugin_acgnshow"]
|
||||||
|
adapters = [{name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11"}]
|
||||||
|
|
||||||
|
|
||||||
[tool.pdm]
|
[tool.pdm]
|
||||||
distribution = true
|
distribution = true
|
||||||
|
|
||||||
[tool.pdm.version]
|
[tool.pdm.version]
|
||||||
source = "file"
|
source = "scm"
|
||||||
path = "nonebot_plugin_acgnshow/__init__.py"
|
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]
|
[tool.pdm.build]
|
||||||
includes = []
|
includes = []
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["pdm-backend"]
|
requires = ["pdm-backend"]
|
||||||
build-backend = "pdm.backend"
|
build-backend = "pdm.backend"
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
|
ignore = ["E402"]
|
Loading…
x
Reference in New Issue
Block a user