Update data_source.py

This commit is contained in:
HibiKier
2021-08-06 21:27:55 +08:00
committed by GitHub
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"