mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
🎨 improve code style
This commit is contained in:
parent
e0f73ba193
commit
b31d04dc5d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user