初始化整理

This commit is contained in:
SlyAimer 2025-01-14 15:58:33 +08:00
parent cf421a1d12
commit 138820da91
3 changed files with 9 additions and 3 deletions

3
.gitignore vendored
View file

@ -2,4 +2,5 @@
.venv
.xml
.idea
.db
chat_bot.db
cloud_music_cookies.cookie

View file

@ -4,7 +4,7 @@ nonebot2[fastapi]
nonebot2[httpx]
nonebot2[websockets]
sqlalchemy
sqlalchemy~=2.0.34
autopep8
graiax-silkcoder
Crypto
@ -15,3 +15,8 @@ gradio_client
requests~=2.32.3
pillow~=10.4.0
yaml~=0.2.5
pyyaml~=6.0.1

View file

@ -10,7 +10,7 @@ from src.common_plugins.img.get_image import get_image_names, get_smms_image_url
fortune_by_sqlite = on_command("今日运势", rule=to_me(), priority=10, block=True)
@fortune_by_sqlite.handle()
async def get_today_fortune(message: MessageEvent):
url = get_smms_image_url()
local_image_path = get_image_names()
member_openid = message.get_user_id()
# 查询今日是否已经获取过今日运势,如果获取过则直接从日志取