mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 20:16:47 +00:00
🐛 fix ding adapter issues
1. cannot send complicate message, such as actionCard 2. fix judge current connection mode
This commit is contained in:
@ -505,7 +505,7 @@ class Matcher(metaclass=MatcherMeta):
|
||||
"""
|
||||
bot = current_bot.get()
|
||||
event = current_event.get()
|
||||
if message:
|
||||
if message is not None:
|
||||
await bot.send(event=event, message=message, **kwargs)
|
||||
raise FinishedException
|
||||
|
||||
@ -571,6 +571,7 @@ class Matcher(metaclass=MatcherMeta):
|
||||
|
||||
while self.handlers:
|
||||
handler = self.handlers.pop(0)
|
||||
logger.debug(f"Running handler {handler}")
|
||||
await handler(self, bot, event, self.state)
|
||||
|
||||
except RejectedException:
|
||||
|
Reference in New Issue
Block a user