mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update data_source.py
This commit is contained in:
parent
ee6e185df7
commit
a628f7ab26
@ -8,7 +8,6 @@ from services.log import logger
|
|||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import ujson as json
|
import ujson as json
|
||||||
import nonebot
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import aiofiles
|
import aiofiles
|
||||||
import aiohttp
|
import aiohttp
|
||||||
@ -21,7 +20,6 @@ if str(platform.system()).lower() == 'windows':
|
|||||||
policy = asyncio.WindowsSelectorEventLoopPolicy()
|
policy = asyncio.WindowsSelectorEventLoopPolicy()
|
||||||
asyncio.set_event_loop_policy(policy)
|
asyncio.set_event_loop_policy(policy)
|
||||||
|
|
||||||
driver = nonebot.get_driver()
|
|
||||||
|
|
||||||
version_url = "https://github.com/HibiKier/zhenxun_bot/releases"
|
version_url = "https://github.com/HibiKier/zhenxun_bot/releases"
|
||||||
main_url = "https://github.com/HibiKier/zhenxun_bot"
|
main_url = "https://github.com/HibiKier/zhenxun_bot"
|
||||||
@ -32,7 +30,6 @@ temp_dir = Path() / "temp"
|
|||||||
backup_dir = Path() / "backup"
|
backup_dir = Path() / "backup"
|
||||||
|
|
||||||
|
|
||||||
@driver.on_startup
|
|
||||||
async def check_update(bot: Bot):
|
async def check_update(bot: Bot):
|
||||||
logger.info("开始检查更新真寻酱....")
|
logger.info("开始检查更新真寻酱....")
|
||||||
_version = "v0.0.0"
|
_version = "v0.0.0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user