# 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 from discord.ext import commands from cogs.voice import get_voice_manager import logging logger = logging.getLogger(__name__) class Stop(commands.Cog): def __init__(self, bot): self.bot = bot @commands.slash_command(name="stop", description="stopuj bota") async def stop(self, ctx): await ctx.respond(content="\u200b", ephemeral=True) await ctx.interaction.delete_original_response() voice_mgr = get_voice_manager(self.bot) await voice_mgr.disconnect(ctx.guild) logger.info("Bot disconnected from voice channel") def setup(bot): bot.add_cog(Stop(bot))