Skip to content

Commit a96cdc3

Browse files
committed
updating code so it's capable of shifting down a text log channel if it needs to be bumped to the next category
1 parent 745fbaa commit a96cdc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wall_e/utilities/bot_channel_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def create_or_get_channel_id_for_service_logs(self, logger, guild, config,
179179
number_of_retries = 0
180180
while bot_chan is None and number_of_retries < number_of_retries_to_attempt:
181181
bot_chan = await guild.create_text_channel(
182-
service, category=logs_category, position=text_channel_position
182+
service, position=text_channel_position
183183
)
184184
logger.debug(
185185
f"[BotChannelManager create_or_get_channel_id_for_service_logs()] got channel \"{bot_chan}\" for "
@@ -312,7 +312,7 @@ def log_category(channel): return (
312312
async def fix_text_channel_positioning(cls, logger, guild):
313313
duplicate_channels = {} # used to find and report text log channels that share the same name
314314

315-
category_names = [wall_e_category_name, wall_e_category_name_contd]
315+
category_names = [wall_e_category_name_contd, wall_e_category_name]
316316
for category_name in category_names:
317317
logger.debug(
318318
"[BotChannelManager fix_text_channel_positioning()] going through any logs under channel "

0 commit comments

Comments
 (0)