Skip to content

Commit 61f2948

Browse files
authored
apparently role_comands_debug also gets rate-limited
1 parent af6cb03 commit 61f2948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wall_e/utilities/log_channel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def write_to_bot_log_channel(logger, config, bot, file_path, chan_id, chan
6363
f'[log_channel.py write_to_bot_log_channel()] write to channel failed\n{exc_str}'
6464
)
6565
line = f.readline()
66-
if channel_name == 'leveling_debug':
66+
if channel_name in ['leveling_debug', 'role_commands_debug']:
6767
# adding a sleep cause the amount of debug logs that I print due to the wall_e_models module can
6868
# trigger a Rate Limit exception if done too fast
6969
await asyncio.sleep(1)

0 commit comments

Comments
 (0)