️ Refactor LiteyukiBot structure and add configuration loading

- Updated .gitignore to include .pytest_cache
- Replaced FastAPI with Daemon in main.py for bot execution
- Enhanced pyproject.toml with new dependencies and dev group
- Added iniconfig package for pytest configuration
- Created initial structure for liteyukibot with context management
- Implemented configuration loading functions for YAML, JSON, and TOML
- Added tests for configuration loading with temporary files
- Set up GitHub Actions for pytest testing on push and pull requests
This commit is contained in:
2025-04-28 00:56:07 +08:00
parent 4cbf043547
commit 1de7d81693
18 changed files with 319 additions and 5 deletions

View File

@ -1,6 +1,5 @@
from fastapi import FastAPI
import uvicorn
from liteyukibot import Daemon
if __name__ == "__main__":
app = FastAPI()
uvicorn.run(app, host="0.0.0.0", port=8080)
daemon = Daemon()
daemon.run()