🎨 improve code style

This commit is contained in:
StarHeartHunt 2021-09-24 20:26:50 +08:00
parent e0f73ba193
commit b31d04dc5d

View File

@ -1,12 +1,11 @@
from nonebot.adapters.feishu.event import MessageEvent
from nonebot.rule import to_me
from nonebot.plugin import on_command from nonebot.plugin import on_command
from nonebot.adapters.feishu import Bot as FeishuBot, MessageSegment, MessageEvent from nonebot.typing import T_State
from nonebot.adapters.feishu import Bot as FeishuBot, MessageEvent
helper = on_command("say") helper = on_command("say")
@helper.handle() @helper.handle()
async def feishu_helper(bot: FeishuBot, event: MessageEvent): async def feishu_helper(bot: FeishuBot, event: MessageEvent, state: T_State):
message = event.get_message() message = event.get_message()
await helper.finish(message, at_sender=True) await helper.finish(message, at_sender=True)