Horje
discord.py play mp3 file Code Example
discord.py play mp3 file
@bot.command(aliases=['paly', 'queue', 'que'])
async def play(ctx):
    guild = ctx.guild
    voice_client: discord.VoiceClient = discord.utils.get(bot.voice_clients, guild=guild)
    audio_source = discord.FFmpegPCMAudio('vuvuzela.mp3')
    if not voice_client.is_playing():
        voice_client.play(audio_source, after=None)




Python

Related
python dir all files Code Example python dir all files Code Example
convert mb to gb python Code Example convert mb to gb python Code Example
python create hash from string Code Example python create hash from string Code Example
python hash string Code Example python hash string Code Example
open chrome console in selenium Code Example open chrome console in selenium Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7