Skip to content

Commit 5adbead

Browse files
jmt059claude
andcommitted
fix: fetch_emoji_like 兼容 LLBot (LuckyLilliaBot)
LLBot 的 fetch_emoji_like 使用 snake_case 参数名 (emoji_id), 而 NapCat 使用 camelCase (emojiId)。当前代码只传了 emojiId, 导致 LLBot 因缺少必需参数 emoji_id 而验证失败,异常被静默捕获, 仲裁机制完全失效——所有 Bot 都认为自己胜出,重复解析。 同时传递两种参数名,各实现取所需、忽略未知参数。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b340ce0 commit 5adbead

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/arbiter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,10 @@ async def _fetch_users(
150150
try:
151151
resp = await bot.fetch_emoji_like(
152152
message_id=message_id,
153+
emoji_id=str(emoji_id),
153154
emojiId=str(emoji_id),
154155
emojiType=emoji_type,
156+
count=20,
155157
)
156158
except Exception:
157159
return []

0 commit comments

Comments
 (0)