mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
🐛 fix gacha cooldown
This commit is contained in:
parent
5e2cceccb5
commit
9767818e5d
@ -76,6 +76,7 @@ async def _(event: MessageEvent, reGroup: Dict = RegexDict()):
|
||||
num = int(num) if num and num.isdigit() else 1
|
||||
pool = pool or '角色1'
|
||||
result = await draw_gacha_img(event.user_id, pool, num, nickname)
|
||||
if isinstance(event, GroupMessageEvent):
|
||||
freq_limiter.start(f'gacha-group{event.group_id}', pm.get_plugin_config('Paimon_Gacha', '群冷却', 30))
|
||||
freq_limiter.start(f'gacha-group{event.group_id}-{event.user_id}', pm.get_plugin_config('Paimon_Gacha', '群员冷却', 60))
|
||||
await sim_gacha.finish(result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user