Skip to content

Commit

Permalink
fix: 修复 wake 唤醒词无法触发 command 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Aug 5, 2024
1 parent 01abbe2 commit e5275ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astrbot/message/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ async def handle(self, message: AstrMessageEvent, llm_provider: Provider = None)
if msg_plain.startswith(nick):
msg_plain = msg_plain.removeprefix(nick)
break

message.message_str = msg_plain

# scan candidate commands
cmd_res = await self.command_manager.scan_command(message, self.context)
if cmd_res:
Expand Down

0 comments on commit e5275ff

Please sign in to comment.