diff --git a/main.py b/main.py index c55b3e2..3d8be88 100644 --- a/main.py +++ b/main.py @@ -6,13 +6,11 @@ from tools.sessions import session async def main(): - try: - init_logger() - await app.start() - await idle() - finally: - await session.close() - await app.stop() + init_logger() + await app.start() + await idle() + await session.close() + await app.stop() if __name__ == '__main__': diff --git a/plugins/sticker.py b/plugins/sticker.py index 2cfd83b..cfb7f51 100644 --- a/plugins/sticker.py +++ b/plugins/sticker.py @@ -28,7 +28,7 @@ async def sticker_event(cli: Client, msg: Message): await logger.complete() -@Client.on_message(command('s')) +@Client.on_message(command('sticker')) async def sticker(cli: Client, msg: Message): """ 用法一:-s 回复一条消息