安全性更新
This commit is contained in:
1 parent
5bd77d2599
commit
e75f0c95e9
29 files changed
+726
-143
No files matched your search
@@ -5,7 +5,7 @@
|
||||
"""
|
||||
import asyncio
|
||||
|
||||
from . import clock, config, db, notices
|
||||
from . import clock, config, db, limits, notices
|
||||
from .titles import fmt_uid
|
||||
|
||||
|
||||
@@ -42,3 +42,4 @@ async def loop() -> None:
|
||||
while True:
|
||||
await asyncio.sleep(config.CHECK_INTERVAL)
|
||||
await asyncio.to_thread(check_safe)
|
||||
limits.sweep_all() # 順便清掉過期的限流紀錄
|
||||
Reference in new issue
Block a user