From f1abf4e0b39805380dc66a89926b622946ee6b92 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 27 Oct 2017 21:06:41 -0400 Subject: [PATCH] Testing n stuff --- src/main/run.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/run.py b/src/main/run.py index 54244fa..582fd9c 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -136,12 +136,14 @@ def after(voice, error): @bot.command(name=',test', hidden=True) @commands.is_owner() @checks.del_ctx() -async def test(ctx): - logs = [] - async for entry in ctx.guild.audit_logs(limit=None, action=d.AuditLogAction.message_delete): - logs.append( - f'@{entry.user.name} deleted {entry.extra.count} messages from @{entry.target.name} in #{entry.extra.channel.name}') - pprint(logs) +async def test(ctx, message): + if '<:N_:368917475531816962>' in message: + await ctx.send('<:N_:368917475531816962>') + # logs = [] + # async for entry in ctx.guild.audit_logs(limit=None, action=d.AuditLogAction.message_delete): + # logs.append( + # f'@{entry.user.name} deleted {entry.extra.count} messages from @{entry.target.name} in #{entry.extra.channel.name}') + # pprint(logs) # channel = bot.get_channel(int(cid)) # voice = await channel.connect() # voice.play(d.AudioSource, after=lambda: after(voice))