mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 17:15:05 +08:00
13 lines
321 B
Python
13 lines
321 B
Python
from nonebot.typing import State
|
|
from nonebot.adapters import Bot, Event
|
|
from nonebot.permission import GROUP_OWNER
|
|
|
|
from . import cmd
|
|
|
|
test_1 = cmd.command("1", aliases={"test"}, permission=GROUP_OWNER)
|
|
|
|
|
|
@test_1.handle()
|
|
async def test1(bot: Bot, event: Event, state: State):
|
|
await test_1.finish(event.raw_message)
|