diff options
| author | 2020-04-25 09:24:27 +0300 | |
|---|---|---|
| committer | 2020-04-25 09:24:27 +0300 | |
| commit | fa3d369b68644dfa30d1db22ca7dd1c76b9d608e (patch) | |
| tree | c93cd36e94fe58990acf1298da75d512dd1e29b5 | |
| parent | Refactor `pep` command, implement caching (diff) | |
Replaced 24 hours with 3 hours in `refresh_peps_urls`
Made modification to include new PEPs faster.
| -rw-r--r-- | bot/cogs/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py index 995221b80..626169b42 100644 --- a/bot/cogs/utils.py +++ b/bot/cogs/utils.py @@ -58,9 +58,9 @@ class Utils(Cog): self.peps: Dict[int, str] = {} self.refresh_peps_urls.start() - @loop(hours=24) + @loop(hours=3) async def refresh_peps_urls(self) -> None: - """Refresh PEP URLs listing every day at once.""" + """Refresh PEP URLs listing in every 3 hours.""" # Wait until HTTP client is available await self.bot.wait_until_guild_available() |