Compare commits
No commits in common. "71fad98d3d908e724efb1efae09c241793be73a9" and "f4b7e0f5ce8b31407929a35001df20cf8d94688c" have entirely different histories.
71fad98d3d
...
f4b7e0f5ce
2
state.py
2
state.py
@ -15,5 +15,5 @@ idle_tracker = {"is_idle": False, "last_used": time.time()}
|
|||||||
kill = {"transcript": False}
|
kill = {"transcript": False}
|
||||||
message_responses = LimitedSizeDict()
|
message_responses = LimitedSizeDict()
|
||||||
players = {}
|
players = {}
|
||||||
sponsorblock_cache = LimitedSizeDict()
|
sponsorblock_cache = LimitedSizeDict(size_limit=100)
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
2
tasks.py
2
tasks.py
@ -11,7 +11,7 @@ async def cleanup():
|
|||||||
debug("spawned cleanup thread")
|
debug("spawned cleanup thread")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(3600)
|
await asyncio.sleep(3600 * 12)
|
||||||
|
|
||||||
targets = []
|
targets = []
|
||||||
for guild_id, player in players.items():
|
for guild_id, player in players.items():
|
||||||
|
@ -50,7 +50,7 @@ def filter_secrets(text: str, secrets=SECRETS) -> str:
|
|||||||
|
|
||||||
class LimitedSizeDict(OrderedDict):
|
class LimitedSizeDict(OrderedDict):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.size_limit = kwargs.pop("size_limit", 100)
|
self.size_limit = kwargs.pop("size_limit", 1000)
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self._check_size_limit()
|
self._check_size_limit()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user