Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
smoadrareun authored Mar 18, 2024
1 parent 818ec10 commit c994c93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nonebot_plugin_bilifan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ async def auto_cup():
else:
count[group_num] = 1
elif user_id != group_id:
count[group_id] += 1
if group_id in count:
count[group_id] += 1
else:
count[group_id] = 1
await get_bot().send_private_msg(user_id=user_id, message=messageStr)

for group_num, num in count.items():
Expand Down

0 comments on commit c994c93

Please sign in to comment.