Change phishing sync time to 1 hour

This commit is contained in:
Zeva Rose 2022-05-07 01:28:53 -06:00
parent 234b40cfe1
commit 074c41f802

View file

@ -77,11 +77,11 @@ class Jarvis(Client):
self.phishing_domains = []
self.pre_run_callback = self._prerun
@Task.create(IntervalTrigger(days=1))
@Task.create(IntervalTrigger(hours=1))
async def _update_domains(self) -> None:
self.logger.debug("Updating phishing domains")
async with ClientSession(headers={"X-Identity": "Discord: zevaryx#5779"}) as session:
response = await session.get("https://phish.sinking.yachts/v2/recent/86415")
response = await session.get("https://phish.sinking.yachts/v2/recent/3700")
response.raise_for_status()
data = await response.json()