mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
commit
36ea174804
@ -16,6 +16,7 @@ import aiohttp
|
|||||||
import math
|
import math
|
||||||
import asyncio
|
import asyncio
|
||||||
import os
|
import os
|
||||||
|
import secrets
|
||||||
|
|
||||||
|
|
||||||
async def group_user_check_in(
|
async def group_user_check_in(
|
||||||
@ -41,7 +42,7 @@ async def _handle_check_in(
|
|||||||
nickname: str, user_qq: int, group: int, present: datetime
|
nickname: str, user_qq: int, group: int, present: datetime
|
||||||
) -> MessageSegment:
|
) -> MessageSegment:
|
||||||
user = await SignGroupUser.ensure(user_qq, group, for_update=True)
|
user = await SignGroupUser.ensure(user_qq, group, for_update=True)
|
||||||
impression_added = random.random()
|
impression_added = (secrets.randbelow(90)+1)/100
|
||||||
critx2 = random.random()
|
critx2 = random.random()
|
||||||
add_probability = user.add_probability
|
add_probability = user.add_probability
|
||||||
specify_probability = user.specify_probability
|
specify_probability = user.specify_probability
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user