nonebot2/tests/test_plugins/test_group/commands.py

11 lines
209 B
Python
Raw Normal View History

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