bot/audio_trial1.py
async def play(ctx, *, query):
    """Plays a file from the local filesystem"""
    source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(query))
    ctx.voice_client.play(source, after=lambda e: print('Player error: %s' % e) if e else None)
    await ctx.send('Now playing: {}'.format(query))
Plays a file from the local filesystem
Plays a file from the local filesystem
Plays a file from the local filesystem
async def play(ctx, *, query):
    source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(query))
    ctx.voice_client.play(source, after=lambda e: print('Player error: %s' % e) if e else None)
    await ctx.send('Now playing: {}'.format(query))
async def play ( ctx , * , query ) : source = discord . PCMVolumeTransformer ( discord . FFmpegPCMAudio ( query ) ) ctx . voice_client . play ( source , after = lambda e : print ( 'Player error: %s' % e ) if e else None ) await ctx . send ( 'Now playing: {}' . format ( query ) )
Plays a file from the local filesystem
Plays a file from the local filesystem
"""Plays a file from the local filesystem"""
ctx
query