MibooGram/core
2022-12-30 16:49:15 +08:00
..
admin
base 🎨 Improve code quality 2022-12-25 21:26:08 +08:00
cookies 🐛 Fix Account Info Not Completely Remove from Database 2022-12-25 15:56:52 +08:00
game
quiz
search
sign
template
user
wiki
baseplugin.py 🎨 Simplify Exception Log for clean_message 2022-12-30 16:49:15 +08:00
bot.py 🎨 Improve code quality 2022-12-25 21:26:08 +08:00
config.py
error.py
plugin.py
README.md
service.py

core 目录说明

关于 Service

服务 Service 需定义在 services 文件夹下, 并继承 core.service.Service

每个 Service 都应包含 startstop 方法, 且这两个方法都为异步方法

from core.service import Service


class TestService(Service):
    def __init__(self):
        """do something"""

    async def start(self, *args, **kwargs):
        """do something"""

    async def stop(self, *args, **kwargs):
        """do something"""