From 4d92778c8a7ebbb90d88fd895b98fa4d58cf293c Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 20 Oct 2017 16:19:15 -0400 Subject: [PATCH] Misc testing --- src/main/run.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/main/run.py b/src/main/run.py index 6d46849..b1b0817 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -130,16 +130,8 @@ def after(voice, error): @commands.is_owner() @checks.del_ctx() async def test(ctx): - def check(react, user): - return reaction.emoji == '\N{THUMBS UP SIGN}' - # channel = bot.get_channel(int(cid)) - # voice = await channel.connect() - # voice.play(d.AudioSource, after=lambda: after(voice)) - test = await ctx.send('thumbs up!') - while True: - done, pending = await asyncio.wait([bot.wait_for('reaction_add', check=check), bot.wait_for('reaction_remove', check=check)], return_when=asyncio.FIRST_COMPLETED) - await ctx.send('well doneeee') - # bot.add_listener(on_reaction_add) - # bot.add_listener(on_reaction_remove) + channel = bot.get_channel(int(cid)) + voice = await channel.connect() + voice.play(d.AudioSource, after=lambda: after(voice)) bot.run(u.config['token'])