lunarflu HF staff commited on
Commit
7b154b2
·
verified ·
1 Parent(s): 08d313c

reduce times, wait and see what effect it has

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -106,21 +106,20 @@ async def give_verified_roles():
106
  continue
107
  if role not in member.roles:
108
  await member.add_roles(role)
109
- await asyncio.sleep(10)
110
  print(f"Role added to member: {member}")
111
- await asyncio.sleep(10)
112
  lunar = bot.get_user(811235357663297546)
113
  if lunar:
114
  await lunar.send(f"Verified role given to {member}!")
115
- await asyncio.sleep(10)
116
  await member.send(
117
  f"Verification successful! [{member} <---> {row['discord_user_name']}] \n🤗 {org_link} {invite_message}"
118
  )
119
- await asyncio.sleep(10)
120
 
121
  except Exception as e:
122
  print(f"Error encountered: {e}")
123
- await asyncio.sleep(60)
124
 
125
 
126
  # Function to run the bot in a thread
 
106
  continue
107
  if role not in member.roles:
108
  await member.add_roles(role)
109
+ await asyncio.sleep(5)
110
  print(f"Role added to member: {member}")
111
+ #await asyncio.sleep(10)
112
  lunar = bot.get_user(811235357663297546)
113
  if lunar:
114
  await lunar.send(f"Verified role given to {member}!")
 
115
  await member.send(
116
  f"Verification successful! [{member} <---> {row['discord_user_name']}] \n🤗 {org_link} {invite_message}"
117
  )
118
+ await asyncio.sleep(5)
119
 
120
  except Exception as e:
121
  print(f"Error encountered: {e}")
122
+ await asyncio.sleep(30) # was 60
123
 
124
 
125
  # Function to run the bot in a thread