1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 14:27:27 +00:00

Testing n stuff

This commit is contained in:
Myned 2017-10-27 21:06:41 -04:00
parent f121ccd3f8
commit f1abf4e0b3

View file

@ -136,12 +136,14 @@ def after(voice, error):
@bot.command(name=',test', hidden=True) @bot.command(name=',test', hidden=True)
@commands.is_owner() @commands.is_owner()
@checks.del_ctx() @checks.del_ctx()
async def test(ctx): async def test(ctx, message):
logs = [] if '<:N_:368917475531816962>' in message:
async for entry in ctx.guild.audit_logs(limit=None, action=d.AuditLogAction.message_delete): await ctx.send('<:N_:368917475531816962>')
logs.append( # logs = []
f'@{entry.user.name} deleted {entry.extra.count} messages from @{entry.target.name} in #{entry.extra.channel.name}') # async for entry in ctx.guild.audit_logs(limit=None, action=d.AuditLogAction.message_delete):
pprint(logs) # 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)) # channel = bot.get_channel(int(cid))
# voice = await channel.connect() # voice = await channel.connect()
# voice.play(d.AudioSource, after=lambda: after(voice)) # voice.play(d.AudioSource, after=lambda: after(voice))