Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashGriefs committed May 21, 2024
1 parent 821aec6 commit 4e2e0cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/botnuker.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,14 @@ async def on_ready():
response_text = await response.text()
await asynccprint(f"Failed to update guild settings. Status code: {response.status}, Response: {response_text}", 1)

guild = bot.get_guild(guild_id)
await guild.edit(name=guild_name)
if response.ok():
if response.ok:
await asynccprint(f"Changed server name to \"{guild_name}\"", 0)
else:
response_text = await response.text()
await asynccprint(f"Failed to change server name. Status code: {response.status}, Response: {response_text}", 1)

guild = bot.get_guild(guild_id)

while True:
deletable_channels = [channel for channel in guild.channels]
deletable_roles = [role for role in guild.roles if role.position < guild.me.top_role.position and role != guild.default_role]
Expand Down

0 comments on commit 4e2e0cd

Please sign in to comment.