refactor(commands/voice): split into separate files

This commit is contained in:
2025-01-07 15:22:03 -05:00
parent 2ea3d74e8a
commit 8ee5d01bf6
7 changed files with 293 additions and 246 deletions

19
commands/voice/channel.py Normal file
View File

@@ -0,0 +1,19 @@
import utils
from .utils import command_allowed
async def join(message):
if message.guild.voice_client:
return await message.guild.voice_client.move_to(message.channel)
await message.channel.connect()
await utils.add_check_reaction(message)
async def leave(message):
if not command_allowed(message):
return
await message.guild.voice_client.disconnect()
await utils.add_check_reaction(message)