gsd 1 year ago
parent
commit
c599635efa
  1. 8
      other_ext/register.py

8
other_ext/register.py

@ -162,12 +162,15 @@ class Extension:
await self.updater()
await asyncio.sleep(timeout)
async def task_secondary(self, timeout = 60 * 60):
async def task_secondary(self, timeout = 60):
await self.core.wait_until_ready()
await asyncio.sleep(5)
print("[register] update register cache who dont have role")
while True:
await self.give_roles_to_auth()
try:
await self.give_roles_to_auth()
except:
print("Cannot update sync roles")
await asyncio.sleep(timeout)
async def updater(self):
@ -198,4 +201,5 @@ class Extension:
print(f"[register] cannot add role to {unreg}")
traceback.print_exc()
except:
print("Cannot get /api/discord/sync")
traceback.print_exc()
Loading…
Cancel
Save