From e30521badd0b90376f3c1c1412758c5c42a988c3 Mon Sep 17 00:00:00 2001 From: iwumingz Date: Fri, 8 Apr 2022 09:39:34 +0800 Subject: [PATCH] Update description --- main.py | 12 +++++------- plugins/sticker.py | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) 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 回复一条消息