Update description
This commit is contained in:
parent
c95aa1ed34
commit
e30521badd
12
main.py
12
main.py
@ -6,13 +6,11 @@ from tools.sessions import session
|
|||||||
|
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
try:
|
init_logger()
|
||||||
init_logger()
|
await app.start()
|
||||||
await app.start()
|
await idle()
|
||||||
await idle()
|
await session.close()
|
||||||
finally:
|
await app.stop()
|
||||||
await session.close()
|
|
||||||
await app.stop()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@ -28,7 +28,7 @@ async def sticker_event(cli: Client, msg: Message):
|
|||||||
await logger.complete()
|
await logger.complete()
|
||||||
|
|
||||||
|
|
||||||
@Client.on_message(command('s'))
|
@Client.on_message(command('sticker'))
|
||||||
async def sticker(cli: Client, msg: Message):
|
async def sticker(cli: Client, msg: Message):
|
||||||
"""
|
"""
|
||||||
用法一:-s <emoji|无> 回复一条消息
|
用法一:-s <emoji|无> 回复一条消息
|
||||||
|
Loading…
Reference in New Issue
Block a user