mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 23:32:10 +00:00
A niech spierdala
This commit is contained in:
@@ -19,6 +19,22 @@ class AdministrationModule(commands.Cog):
|
|||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.logger = logging.getLogger(logger_name)
|
self.logger = logging.getLogger(logger_name)
|
||||||
|
|
||||||
|
@commands.hybrid_command(
|
||||||
|
name="galeria_slaw",
|
||||||
|
description="Jeśli nie wiesz jak użyć tej komendy to nawet nie próbuj",
|
||||||
|
guild=discord.Object(id=664789470779932693),
|
||||||
|
)
|
||||||
|
async def galeria_slaw(self, ctx):
|
||||||
|
|
||||||
|
fnord = discord.File(
|
||||||
|
"niech_spierdala.png", spoiler=False, description="Niech spierdala"
|
||||||
|
)
|
||||||
|
|
||||||
|
for guild in self.bot.guilds:
|
||||||
|
async for entry in guild.bans(limit=1500):
|
||||||
|
await ctx.reply(f"User: {entry.user} wyjebany z serwera {guild.name} za {entry.reason} ", file=fnord)
|
||||||
|
|
||||||
|
|
||||||
@commands.hybrid_command(
|
@commands.hybrid_command(
|
||||||
name="update_banlist",
|
name="update_banlist",
|
||||||
description="Jeśli nie wiesz jak użyć tej komendy to nawet nie próbuj",
|
description="Jeśli nie wiesz jak użyć tej komendy to nawet nie próbuj",
|
||||||
@@ -92,6 +108,7 @@ class AdministrationModule(commands.Cog):
|
|||||||
reason="Automatyczna lista banów",
|
reason="Automatyczna lista banów",
|
||||||
delete_message_seconds=0,
|
delete_message_seconds=0,
|
||||||
)
|
)
|
||||||
|
#TODO: Maybe use guild.bulk_ban ?
|
||||||
cunter_counter += 1
|
cunter_counter += 1
|
||||||
except discord.NotFound:
|
except discord.NotFound:
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user