Skip to content

Commit

Permalink
修复cd错误重置问题
Browse files Browse the repository at this point in the history
  • Loading branch information
782552619@qq.com committed Mar 1, 2023
1 parent 9697c5f commit a0038b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zhenxun_plugin_niuniu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ async def _(event: GroupMessageEvent, state: T_State):
result = "一战多?你的小身板扛得住吗?"
elif at != qq:
try:
group_user_jj[group][qq]['time'] = time.time()
opponent_long = de(str(content[group][at]))
group_user_jj[group][qq]['time'] = time.time()
if opponent_long > my_long:
probability = random.randint(1, 100)
if 0 < probability <= 45:
Expand Down Expand Up @@ -338,9 +338,9 @@ async def _(event: GroupMessageEvent, state: T_State):
except KeyError:
pass
try:
group_hit_glue[group][qq]['time'] = time.time()
content = readInfo("data/long.json")
my_long = de(str(content[group][qq]))
group_hit_glue[group][qq]['time'] = time.time()
probability = random.randint(1, 100)
if 0 < probability <= 40:
reduce = random_long()
Expand Down

0 comments on commit a0038b3

Please sign in to comment.