mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-10-04 22:16:23 +00:00
⚡️ 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:
16
liteyukibot/daemon.py
Normal file
16
liteyukibot/daemon.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import asyncio
|
||||
|
||||
|
||||
class Daemon:
|
||||
def __init__(self, **config):
|
||||
self.config = config
|
||||
|
||||
async def _run(self):
|
||||
"""liteyukibot入口函数
|
||||
"""
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
"""liteyukibot入口函数
|
||||
"""
|
||||
asyncio.run(self._run())
|
Reference in New Issue
Block a user