Moved initial caching a bit

This commit is contained in:
Profitroll 2023-01-09 14:43:19 +01:00
parent bdc775dcbd
commit 30dfe4ff04

View File

@ -40,7 +40,7 @@ if configGet("enabled", "scheduler", "cache_admins"):
# Cache the avatars of group members # Cache the avatars of group members
if configGet("enabled", "scheduler", "cache_avatars"): if configGet("enabled", "scheduler", "cache_avatars"):
@scheduler.scheduled_job(trigger="date", run_date=datetime.now()+timedelta(seconds=10)) @scheduler.scheduled_job(trigger="date", run_date=datetime.now()+timedelta(seconds=15))
@scheduler.scheduled_job(trigger="interval", hours=configGet("interval", "scheduler", "cache_avatars")) @scheduler.scheduled_job(trigger="interval", hours=configGet("interval", "scheduler", "cache_avatars"))
async def cache_avatars(): async def cache_avatars():
list_of_users = [] list_of_users = []
@ -103,7 +103,7 @@ if configGet("enabled", "features", "sponsorships") is True:
# Register all bot commands # Register all bot commands
@scheduler.scheduled_job(trigger="date", run_date=datetime.now()+timedelta(seconds=3)) @scheduler.scheduled_job(trigger="date", run_date=datetime.now()+timedelta(seconds=10))
async def commands_register(): async def commands_register():
commands = { commands = {