From 573783f843594c407b02e81f15d8882440b15b20 Mon Sep 17 00:00:00 2001 From: Bene Date: Sat, 25 May 2024 19:03:11 +0200 Subject: [PATCH] Switched to Python --- .dockerignore | 1 + bot.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4f509e5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +*.env \ No newline at end of file diff --git a/bot.py b/bot.py index f57a4c3..1c146a3 100644 --- a/bot.py +++ b/bot.py @@ -26,7 +26,6 @@ async def on_voice_state_update(member, before, after): await member.move_to(new_channel) if before.channel and len(before.channel.members) == 0 and before.channel.id != join_to_create_channel_id: - # Check if the channel was created by the bot by checking its name if before.channel.name.startswith('🔊'): await before.channel.delete(reason='No members left in the bot-created channel')