mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
1.将请求相关封装成了Request类 2.新增了获取cookies后使用aiohttp请求的机制,理论上可以提速+减少不必要的性能开销,并且将cookies存储至cache 3.整理代码 新增config.py,用于配置cache路径 添加依赖项Brotli
6 lines
122 B
Python
6 lines
122 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class Config(BaseModel):
|
|
cache_path: str = 'cache/nonebot_plugin_tetris_stats/cache'
|