Change phishing sync time to 1 hour
This commit is contained in:
parent
234b40cfe1
commit
074c41f802
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue