mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
初始化整理
This commit is contained in:
parent
cf421a1d12
commit
138820da91
3 changed files with 9 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -2,4 +2,5 @@
|
||||||
.venv
|
.venv
|
||||||
.xml
|
.xml
|
||||||
.idea
|
.idea
|
||||||
.db
|
chat_bot.db
|
||||||
|
cloud_music_cookies.cookie
|
||||||
|
|
@ -4,7 +4,7 @@ nonebot2[fastapi]
|
||||||
nonebot2[httpx]
|
nonebot2[httpx]
|
||||||
nonebot2[websockets]
|
nonebot2[websockets]
|
||||||
|
|
||||||
sqlalchemy
|
sqlalchemy~=2.0.34
|
||||||
autopep8
|
autopep8
|
||||||
graiax-silkcoder
|
graiax-silkcoder
|
||||||
Crypto
|
Crypto
|
||||||
|
|
@ -15,3 +15,8 @@ gradio_client
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
requests~=2.32.3
|
||||||
|
pillow~=10.4.0
|
||||||
|
yaml~=0.2.5
|
||||||
|
pyyaml~=6.0.1
|
||||||
|
|
@ -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 = on_command("今日运势", rule=to_me(), priority=10, block=True)
|
||||||
@fortune_by_sqlite.handle()
|
@fortune_by_sqlite.handle()
|
||||||
async def get_today_fortune(message: MessageEvent):
|
async def get_today_fortune(message: MessageEvent):
|
||||||
url = get_smms_image_url()
|
|
||||||
local_image_path = get_image_names()
|
local_image_path = get_image_names()
|
||||||
member_openid = message.get_user_id()
|
member_openid = message.get_user_id()
|
||||||
# 查询今日是否已经获取过今日运势,如果获取过则直接从日志取
|
# 查询今日是否已经获取过今日运势,如果获取过则直接从日志取
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue