forked from bot/app
📝 恢复pyproject.toml
This commit is contained in:
parent
263b78e995
commit
6ef3b09ec9
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,7 +18,6 @@ compile.bat
|
|||||||
src/resources/templates/latest-debug.html
|
src/resources/templates/latest-debug.html
|
||||||
# vuepress
|
# vuepress
|
||||||
.github
|
.github
|
||||||
pyproject.toml
|
|
||||||
|
|
||||||
test.py
|
test.py
|
||||||
line_count.py
|
line_count.py
|
||||||
|
38
pyproject.toml
Normal file
38
pyproject.toml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
[tool.nonebot]
|
||||||
|
[project]
|
||||||
|
# PEP 621 project metadata
|
||||||
|
# See https://www.python.org/dev/peps/pep-0621/
|
||||||
|
authors = [
|
||||||
|
{name = "SnowyKami", email = "snowykami@outlook.com"},
|
||||||
|
]
|
||||||
|
license = {text = "MIT & LSO"}
|
||||||
|
requires-python = ">=3.10,<4.0"
|
||||||
|
dependencies = [
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
dynamic = ["version"]
|
||||||
|
name = "liteyuki-bot"
|
||||||
|
description = "Push dynamics and live informations from bilibili to QQ. Based on nonebot2."
|
||||||
|
readme = "README.md"
|
||||||
|
keywords = ["nonebot", "nonebot2", "qqbot", "liteyuki", "bot"]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
homepage = "https://bot.liteyuki.icu"
|
||||||
|
repository = "https://github.com/LiteyukiStudio/LiteyukiBot"
|
||||||
|
documentation = "https://bot.liteyuki.icu"
|
||||||
|
|
||||||
|
[tool.pdm.dev-dependencies]
|
||||||
|
dev = []
|
||||||
|
|
||||||
|
[tool.nonebot]
|
||||||
|
adapters = [
|
||||||
|
{ name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" }
|
||||||
|
|
||||||
|
]
|
||||||
|
plugins = ["haruka_bot", "nonebot_plugin_gocqhttp", "nonebot_plugin_guild_patch"]
|
||||||
|
plugin_dirs = []
|
||||||
|
builtin_plugins = []
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
ly = "main.py"
|
@ -26,5 +26,6 @@ watchdog~=4.0.0
|
|||||||
pillow~=10.2.0
|
pillow~=10.2.0
|
||||||
jieba~=0.42.1
|
jieba~=0.42.1
|
||||||
pip~=23.2.1
|
pip~=23.2.1
|
||||||
|
aiosqlite3~=0.3.0
|
||||||
fastapi~=0.110.0
|
fastapi~=0.110.0
|
||||||
python-dotenv~=1.0.1
|
python-dotenv~=1.0.1
|
@ -1,20 +1,21 @@
|
|||||||
from nonebot.plugin import PluginMetadata
|
from nonebot.plugin import PluginMetadata
|
||||||
|
|
||||||
__author__ = "snowykami"
|
__author__ = "snowykami"
|
||||||
__plugin_meta__ = PluginMetadata(
|
__plugin_meta__ = PluginMetadata(
|
||||||
name="轻雪包管理器v2",
|
name="轻雪包管理器v2",
|
||||||
description="详细看文档",
|
description="npm & rpm",
|
||||||
usage=(
|
usage=(
|
||||||
"npm list\n"
|
"npm list\n"
|
||||||
"npm enable/disable <plugin_name>\n"
|
"npm enable/disable <plugin_name>\n"
|
||||||
"npm search <keywords...>\n"
|
"npm search <keywords...>\n"
|
||||||
"npm install/uninstall <plugin_name>\n"
|
"npm install/uninstall <plugin_name>\n"
|
||||||
),
|
),
|
||||||
type="application",
|
type="application",
|
||||||
homepage="https://github.com/snowykami/LiteyukiBot",
|
homepage="https://github.com/snowykami/LiteyukiBot",
|
||||||
extra={
|
extra={
|
||||||
"liteyuki": True,
|
"liteyuki" : True,
|
||||||
"toggleable" : False,
|
"toggleable" : False,
|
||||||
"default_enable" : False,
|
"always_on" : True,
|
||||||
}
|
"default_enable": False,
|
||||||
)
|
}
|
||||||
|
)
|
0
src/plugins/packmanv2/handle.py
Normal file
0
src/plugins/packmanv2/handle.py
Normal file
0
src/plugins/packmanv2/npm/__init__.py
Normal file
0
src/plugins/packmanv2/npm/__init__.py
Normal file
6
src/plugins/packmanv2/npm/data_source.py
Normal file
6
src/plugins/packmanv2/npm/data_source.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
class Session:
|
||||||
|
def __init__(self, session_type: str, session_id: int | str):
|
||||||
|
self.session_type = session_type
|
||||||
|
self.session_id = session_id
|
||||||
|
|
||||||
|
|
0
src/plugins/packmanv2/rpm/__init__.py
Normal file
0
src/plugins/packmanv2/rpm/__init__.py
Normal file
@ -1,21 +1,21 @@
|
|||||||
from nonebot.plugin import PluginMetadata
|
from nonebot.plugin import PluginMetadata
|
||||||
|
|
||||||
from .main import *
|
from .main import *
|
||||||
|
|
||||||
__author__ = "snowykami"
|
__author__ = "snowykami"
|
||||||
__plugin_meta__ = PluginMetadata(
|
__plugin_meta__ = PluginMetadata(
|
||||||
name="网页监控面板",
|
name="网页监控面板",
|
||||||
description="网页监控面板,用于查看机器人的状态和信息",
|
description="网页监控面板,用于查看机器人的状态和信息",
|
||||||
usage=(
|
usage=(
|
||||||
"访问 127.0.0.1:port 查看机器人的状态信息\n"
|
"访问 127.0.0.1:port 查看机器人的状态信息\n"
|
||||||
"stat msg -g|--group [group_id] 查看群的统计信息,不带参数为全群\n"
|
"stat msg -g|--group [group_id] 查看群的统计信息,不带参数为全群\n"
|
||||||
"配置项:custom_domain,自定义域名,通常对外用,内网无需"
|
"配置项:custom_domain,自定义域名,通常对外用,内网无需"
|
||||||
),
|
),
|
||||||
type="application",
|
type="application",
|
||||||
homepage="https://github.com/snowykami/LiteyukiBot",
|
homepage="https://github.com/snowykami/LiteyukiBot",
|
||||||
extra={
|
extra={
|
||||||
"liteyuki" : True,
|
"liteyuki" : True,
|
||||||
"toggleable" : False,
|
"toggleable" : False,
|
||||||
"default_enable": True,
|
"default_enable": True,
|
||||||
}
|
}
|
||||||
)
|
)
|
@ -1,4 +1,4 @@
|
|||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from nonebot import get_app
|
from nonebot import get_app
|
||||||
|
|
||||||
app: FastAPI = get_app()
|
app: FastAPI = get_app()
|
@ -1,10 +1,10 @@
|
|||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from nonebot import get_app
|
from nonebot import get_app
|
||||||
from .restful_api import *
|
from .restful_api import *
|
||||||
|
|
||||||
|
|
||||||
@app.get("/ping")
|
@app.get("/ping")
|
||||||
async def root():
|
async def root():
|
||||||
return {
|
return {
|
||||||
"message": "pong"
|
"message": "pong"
|
||||||
}
|
}
|
@ -1,24 +1,24 @@
|
|||||||
from fastapi import FastAPI, APIRouter
|
from fastapi import FastAPI, APIRouter
|
||||||
from .common import *
|
from .common import *
|
||||||
|
|
||||||
device_info_router = APIRouter(prefix="/api/device-info")
|
device_info_router = APIRouter(prefix="/api/device-info")
|
||||||
bot_info_router = APIRouter(prefix="/api/bot-info")
|
bot_info_router = APIRouter(prefix="/api/bot-info")
|
||||||
|
|
||||||
|
|
||||||
@device_info_router.get("/")
|
@device_info_router.get("/")
|
||||||
async def device_info():
|
async def device_info():
|
||||||
print("Hello Device Info")
|
print("Hello Device Info")
|
||||||
return {
|
return {
|
||||||
"message": "Hello Device Info"
|
"message": "Hello Device Info"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@bot_info_router.get("/")
|
@bot_info_router.get("/")
|
||||||
async def bot_info():
|
async def bot_info():
|
||||||
return {
|
return {
|
||||||
"message": "Hello Bot Info"
|
"message": "Hello Bot Info"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
app.include_router(device_info_router)
|
app.include_router(device_info_router)
|
||||||
app.include_router(bot_info_router)
|
app.include_router(bot_info_router)
|
Loading…
Reference in New Issue
Block a user