🔥 remove cqhttp files

This commit is contained in:
yanyongyu
2021-11-23 16:21:21 +08:00
parent db5d4d7acf
commit 286729f703
26 changed files with 8 additions and 4016 deletions

View File

@ -4,4 +4,4 @@ from nonebot import CommandGroup, MatcherGroup
cmd = CommandGroup("test", rule=to_me())
match = MatcherGroup(priority=2)
from . import matches, commands
from . import commands

View File

@ -1,16 +0,0 @@
from . import match
from nonebot.typing import T_State
from nonebot.adapters import Bot, Event
from nonebot.adapters.cqhttp import HeartbeatMetaEvent
async def heartbeat(bot: Bot, event: Event, state: T_State) -> bool:
return isinstance(event, HeartbeatMetaEvent)
test = match.on_metaevent(rule=heartbeat)
@test.receive()
async def handle_heartbeat(bot: Bot):
print("[i] Heartbeat")