Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
camalot committed Jun 28, 2024
1 parent df78c8e commit 55e4393
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bot/cogs/channel_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ async def on_guild_channel_update(self, before, after):
}''',
delete_after=5,
)
self.log.debug(guild_id, _method, f"Text Channel Name Changed: {new_channel_name}")
self.log.debug(
guild_id, _method, f"Text Channel Name Changed: {new_channel_name}"
)
else:
self.log.warn(
guildId=guild_id,
Expand Down Expand Up @@ -139,11 +141,13 @@ async def on_guild_channel_update(self, before, after):
f'{owner.mention}, {utils.str_replace(self.settings.get_string(guild_id, "info_channel_name_change"), channel=after.name)}',
delete_after=5,
)
self.log.debug(guild_id, _method, f"Voice Channel Name Changed: {new_channel_name}")
self.log.debug(
guild_id, _method, f"Voice Channel Name Changed: {new_channel_name}"
)

if user_settings:
self.usersettings_db.update_user_channel_name(
guildId=guild_id, userId=owner_id, channelName=new_channel_name
guildId=guild_id, userId=owner_id, channelName=new_channel_name or after.name
)
else:
self.usersettings_db.insert_user_settings(
Expand Down

0 comments on commit 55e4393

Please sign in to comment.