mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-11 22:46:38 +00:00
🎨 format code using black and isort
This commit is contained in:
@ -4,4 +4,4 @@ from nonebot import CommandGroup, MatcherGroup
|
||||
cmd = CommandGroup("test", rule=to_me())
|
||||
match = MatcherGroup(priority=2)
|
||||
|
||||
from . import commands, matches
|
||||
from . import matches, commands
|
||||
|
@ -1,6 +1,5 @@
|
||||
from nonebot.adapters import Bot, Event
|
||||
|
||||
from . import cmd
|
||||
from nonebot.adapters import Bot, Event
|
||||
|
||||
test_1 = cmd.command("1", aliases={"test"})
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
from . import match
|
||||
from nonebot.typing import T_State
|
||||
from nonebot.adapters import Bot, Event
|
||||
from nonebot.adapters.cqhttp import HeartbeatMetaEvent
|
||||
|
||||
from . import match
|
||||
|
||||
|
||||
async def heartbeat(bot: Bot, event: Event, state: T_State) -> bool:
|
||||
return isinstance(event, HeartbeatMetaEvent)
|
||||
|
Reference in New Issue
Block a user