Compare commits
2 commits
4a029f3bcd
...
e753423957
Author | SHA1 | Date | |
---|---|---|---|
e753423957 | |||
ee561c5356 |
1 changed files with 6 additions and 6 deletions
6
bot.py
6
bot.py
|
@ -414,7 +414,7 @@ async def hiebe(ctx, *, arg):
|
||||||
await user.create_dm()
|
await user.create_dm()
|
||||||
await user.dm_channel.send("HIEBE :punch: von {}".format(ctx.author.display_name))
|
await user.dm_channel.send("HIEBE :punch: von {}".format(ctx.author.display_name))
|
||||||
|
|
||||||
@bot.command(help="kickt Member ohne Rolle, die 30 Tage nicht online waren", usage="")
|
@bot.command(help="kickt Member ohne Rolle, die 7 Tage nicht online waren", usage="")
|
||||||
@is_admin()
|
@is_admin()
|
||||||
async def prune(ctx):
|
async def prune(ctx):
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
|
@ -427,8 +427,8 @@ async def prune(ctx):
|
||||||
await ctx.send(content="Zeit ausgelaufen", delete_after=5.0)
|
await ctx.send(content="Zeit ausgelaufen", delete_after=5.0)
|
||||||
elif view.value:
|
elif view.value:
|
||||||
await question.delete()
|
await question.delete()
|
||||||
deleted = await ctx.guild.prune_members(days=30)
|
deleted = await ctx.guild.prune_members(days=7)
|
||||||
await ctx.send(content='Ich habe {} Leichen beseitigt.'.format(deleted), delete_after=5.0)
|
await ctx.send(content='Ich habe {} Leiche(n) beseitigt.'.format(deleted), delete_after=5.0)
|
||||||
else:
|
else:
|
||||||
await question.delete()
|
await question.delete()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue