re-enabled other method as bitch2

This commit is contained in:
unknown committed 2019-10-29 15:41:26 -04:00
1 parent 3adc2d32c4
commit 407a2fd313
1 file changed
+15 -15
+15 -15
View File
@@ -95,21 +95,21 @@ async def bitch(ctx):
await channel.disconnect()
#@bot.command()
#async def bitch(ctx):
# user=ctx.message.author
# voice_channel=user.voice.voice_channel
# channel=None
# if voice_channel != None:
# channel=voice_channel.name
# vc= await bot.join_voice_channel(voice_channel)
# player = vc.create_ffmpeg_player('monkey_bitch.mp3', after=lambda: print('done'))
# player.start()
# while not player.is_done():
# await asyncio.sleep(1)
# player.stop()
# await vc.disconnect()
# else:
# await ctx.send("User is not in a channel.")
async def bitch2(ctx):
user=ctx.message.author
voice_channel=user.voice.voice_channel
channel=None
if voice_channel != None:
channel=voice_channel.name
vc= await bot.join_voice_channel(voice_channel)
player = vc.create_ffmpeg_player('monkey_bitch.mp3', after=lambda: print('done'))
player.start()
while not player.is_done():
await asyncio.sleep(1)
player.stop()
await vc.disconnect()
else:
await ctx.send("User is not in a channel.")
###
#