Skip to content

Commit

Permalink
fix: matcher.send(), release 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shengwang52005 committed Aug 13, 2024
1 parent 7f005fd commit 63f0870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ async def handle_poke(bot: Bot, event: PokeNotifyEvent):
messages, weights = zip(*message_list)
# 根据概率选一个消息回复
reply = random.choices(messages, weights=weights, k=1)[0]
await poke.send(event, reply)
await poke.send(reply)

0 comments on commit 63f0870

Please sign in to comment.