安全性更新

This commit is contained in:
Sahik committed 2026-11-25 15:57:10 +08:00
1 parent 5bd77d2599
commit e75f0c95e9
29 files changed
+726 -143

No files matched your search

+2 -1
View File
@@ -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() # 順便清掉過期的限流紀錄