I'm working on the BOT industry for Dyscord and I need to play a voice clip in a kinetic knowledge I have a 32-bit computer
import discord
from discord.ext import commands
import os
client = commands.Bot(command_prefix="!")
@client.command()
async def play(ctx, url : str):
print('We have logged in as {0.user}'.format(client))
voiceChannel = discord.utils.get(ctx.guild.voice_channels, name="Lounge")
await voiceChannel.connect()
voice = discord.utils.get(client.voice_clients, guild=ctx.guild)
voice.play(discord.FFmpegPCMAudio("song.mp3"))
@client.command()
async def ext(ctx):
voice = discord.utils.get(client.voice_clients, guild=ctx.guild)
await voice.disconnect()
client.run('token')