PaiGram/plugins/genshin
Chuangbo Li 87c7253e3a
♻️ 重写 restricts 修饰器
* 🔧 `restricts` 修饰器增加 `no_overlapping` 参数,避免同一个 user 对一个 handler 的多次调用时间重叠
* ♻ 移除 `try_delete_message` 参数 使用 `sleep` 替代
* 使用 `asyncio.Lock` 保证 `context.user_data` 的计数器 `usage_count` 线程安全
* 增加 `no_overlapping` 参数,在上一条一样的命令返回之前,忽略重复调用

Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2022-09-10 19:57:23 +08:00
..
gacha ♻️ 重写 restricts 修饰器 2022-09-10 19:57:23 +08:00
map ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
abyss.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
artifact_rate.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
cookies.py 🐛 修复 cookies 数据时写入前注册信息判断错误的逻辑问题 2022-09-09 19:30:02 +08:00
daily_note.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
help.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
hilichurls.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
ledger.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
material.py 🍱 更新角色昵称 2022-09-09 23:50:10 +08:00
player_cards.py ♻️ 重写 restricts 修饰器 2022-09-10 19:57:23 +08:00
quiz.py ♻️ 重写 restricts 修饰器 2022-09-10 19:57:23 +08:00
sign.py 🎨 设置自动签到结果通知指定 chat_id 需要BOT管理权限 2022-09-10 01:09:29 +08:00
strategy.py 🍱 更新角色昵称 2022-09-09 23:50:10 +08:00
uid.py 🎨 修改 setuid 绑定提示 2022-09-10 12:27:58 +08:00
userstats.py 🐛 修复调用 get_record_card 的逻辑问题 2022-09-10 11:47:28 +08:00
weapon.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00
wiki.py ♻ 更新V3版本 2022-09-08 09:08:37 +08:00