mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Misc testing
This commit is contained in:
parent
1443dce356
commit
4d92778c8a
1 changed files with 3 additions and 11 deletions
|
@ -130,16 +130,8 @@ def after(voice, error):
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
@checks.del_ctx()
|
@checks.del_ctx()
|
||||||
async def test(ctx):
|
async def test(ctx):
|
||||||
def check(react, user):
|
channel = bot.get_channel(int(cid))
|
||||||
return reaction.emoji == '\N{THUMBS UP SIGN}'
|
voice = await channel.connect()
|
||||||
# channel = bot.get_channel(int(cid))
|
voice.play(d.AudioSource, after=lambda: after(voice))
|
||||||
# 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)
|
|
||||||
|
|
||||||
bot.run(u.config['token'])
|
bot.run(u.config['token'])
|
||||||
|
|
Loading…
Reference in a new issue