Skip to content

Commit 0dfb993

Browse files
committed
adding more channels to list of channels that need to have sleep before uploading logs and increasing sleeping
1 parent bfb436d commit 0dfb993

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wall_e/utilities/log_channel.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ async def write_to_bot_log_channel(logger, config, bot, file_path, chan_id, chan
2525
)
2626
f = open(file_path, 'r')
2727
f.seek(0)
28-
channels_with_rate_limit = channel_name in ['leveling_debug', 'role_commands_debug', 'process_lurkers']
28+
channels_with_rate_limit = channel_name in [
29+
'leveling_debug', 'role_commands_debug', 'process_lurkers', "update_outdated_profile_pics"
30+
]
2931
incident_report_chanel_name = config.get_config_value('channel_names', 'INCIDENT_REPORT_CHANNEL')
3032
while not bot.is_closed():
3133
f.flush()
@@ -68,5 +70,5 @@ async def write_to_bot_log_channel(logger, config, bot, file_path, chan_id, chan
6870
if message_sent and channels_with_rate_limit:
6971
# adding a sleep cause the amount of debug logs that I print due to the wall_e_models module can
7072
# trigger a Rate Limit exception if done too fast
71-
await asyncio.sleep(1)
73+
await asyncio.sleep(3)
7274
await asyncio.sleep(1)

0 commit comments

Comments
 (0)