From cd8ed8bc5793985df2c1692072a932ceee517b95 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 8 Jul 2026 02:13:35 +0200 Subject: OPEN THE RUST GATES Signed-off-by: salmonik --- cogs/music/join.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 cogs/music/join.py (limited to 'cogs/music/join.py') diff --git a/cogs/music/join.py b/cogs/music/join.py deleted file mode 100644 index d68ca79..0000000 --- a/cogs/music/join.py +++ /dev/null @@ -1,29 +0,0 @@ -# This file is part of Senator Sperma -# Licensed under the GPL-3.0 License -# Copyright (C) 2026 Salmonik @ salmonik@tuta.io -# https://codeberg.org/salmonik/senator-sperma - -import logging - -from discord.ext import commands -from cogs.voice import get_voice_manager - -logger = logging.getLogger(__name__) - - -class Join(commands.Cog): - def __init__(self, bot): - self.bot = bot - - @commands.slash_command(name="join", description="dołącza do kanalu") - async def join(self, ctx): - voice_mgr = get_voice_manager(self.bot) - channel = ctx.author.voice.channel - await voice_mgr.connect(channel) - await ctx.respond(content="\u200b", ephemeral=True) - await ctx.interaction.delete_original_response() - logger.info("Bot connected to voice channel") - - -def setup(bot): - bot.add_cog(Join(bot)) -- cgit v1.2.3