nonebot2/tests/test_plugins/test_group/commands.py

13 lines
321 B
Python
Raw Normal View History

2020-12-07 00:06:09 +08:00
from nonebot.typing import State
from nonebot.adapters import Bot, Event
from nonebot.permission import GROUP_OWNER
2020-12-04 01:55:03 +08:00
from . import cmd
2020-12-04 01:55:03 +08:00
test_1 = cmd.command("1", aliases={"test"}, permission=GROUP_OWNER)
@test_1.handle()
2020-12-07 00:06:09 +08:00
async def test1(bot: Bot, event: Event, state: State):
await test_1.finish(event.raw_message)