GraiaProject / Ariadne

一个优雅且完备的 Python QQ 自动化框架,基于 Mirai API HTTP v2。 Powered by Graia Project.
https://graia.cn/ariadne
GNU Affero General Public License v3.0
741 stars 45 forks source link

:beers: improve CoolDown #117

Closed Redlnn closed 2 years ago

Redlnn commented 2 years ago

更改说明

  1. 修了 CoolDown 不会 raise ExecutionStop 的问题
  2. 在之前的情况下,会返回一个非常小(-6.xxxxxe-6)的值,更改后在 next_exec_time < current_time 时返回 0