mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix test frequency
This commit is contained in:
parent
bb927f4d7b
commit
eb593d1956
1 changed files with 10 additions and 2 deletions
|
@ -12,6 +12,14 @@ from httpx import AsyncClient, Response
|
|||
from discord.ext import commands, tasks, pages
|
||||
from utils import UptimeEntry, console
|
||||
|
||||
"""
|
||||
Notice to anyone looking at this code:
|
||||
Don't
|
||||
It doesn't look nice
|
||||
It's not well written
|
||||
It just works
|
||||
"""
|
||||
|
||||
|
||||
BASE_JSON = """[
|
||||
{
|
||||
|
@ -227,8 +235,8 @@ class UptimeCompetition(commands.Cog):
|
|||
return await asyncio.gather(*create_tasks, return_exceptions=True)
|
||||
# All done!
|
||||
|
||||
# @tasks.loop(minutes=1)
|
||||
@tasks.loop(seconds=10)
|
||||
@tasks.loop(minutes=1)
|
||||
# @tasks.loop(seconds=30)
|
||||
async def test_uptimes(self):
|
||||
self.task_event.clear()
|
||||
async with self.task_lock:
|
||||
|
|
Loading…
Reference in a new issue