Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashGriefs committed May 21, 2024
1 parent 4e2e0cd commit 1852816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/botnuker.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ async def on_ready():
await asynccprint(f"Failed to change server name. Status code: {response.status}, Response: {response_text}", 1)

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]
deletable_roles = [role for role in guild.roles if role.position < guild.me.top_role.position and role != guild.default_role and not role.managed]

if not deletable_channels and not deletable_roles:
await asynccprint("All deletable channels and roles have been successfully deleted.", 0)
Expand Down

0 comments on commit 1852816

Please sign in to comment.