lunarflu HF Staff commited on
Commit
4dae7b6
·
verified ·
1 Parent(s): dc0c189

more limits

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -101,21 +101,21 @@ async def give_verified_roles():
101
  continue
102
  if role not in member.roles:
103
  await member.add_roles(role)
104
- await asyncio.sleep(2)
105
  print(f"Role added to member: {member}")
106
- await asyncio.sleep(2)
107
  lunar = bot.get_user(811235357663297546)
108
  if lunar:
109
  await lunar.send(f"Verified role given to {member}!")
110
- await asyncio.sleep(2)
111
  await member.send(
112
  f"Verification successful! [{member} <---> {row['discord_user_name']}] \n🤗 {org_link} {invite_message}"
113
  )
114
- await asyncio.sleep(2)
115
 
116
  except Exception as e:
117
  print(f"Error encountered: {e}")
118
- await asyncio.sleep(10) # 30
119
 
120
  def run_bot():
121
  bot.run(DISCORD_TOKEN)
 
101
  continue
102
  if role not in member.roles:
103
  await member.add_roles(role)
104
+ await asyncio.sleep(20)
105
  print(f"Role added to member: {member}")
106
+ await asyncio.sleep(20)
107
  lunar = bot.get_user(811235357663297546)
108
  if lunar:
109
  await lunar.send(f"Verified role given to {member}!")
110
+ await asyncio.sleep(20)
111
  await member.send(
112
  f"Verification successful! [{member} <---> {row['discord_user_name']}] \n🤗 {org_link} {invite_message}"
113
  )
114
+ await asyncio.sleep(30) # 2 per min = maybe avoid more limits
115
 
116
  except Exception as e:
117
  print(f"Error encountered: {e}")
118
+ await asyncio.sleep(30) # 10
119
 
120
  def run_bot():
121
  bot.run(DISCORD_TOKEN)