mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +00:00
Testing n stuff
This commit is contained in:
parent
f121ccd3f8
commit
f1abf4e0b3
1 changed files with 8 additions and 6 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue