mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
fz
This commit is contained in:
@@ -11,7 +11,15 @@ import numpy as np
|
|||||||
from discord.ext import commands, tasks
|
from discord.ext import commands, tasks
|
||||||
|
|
||||||
from ai_functions import get_random_cyclic_message
|
from ai_functions import get_random_cyclic_message
|
||||||
from constants import ENCODING, LOGFILE, LOGSTORE, MEMORY_FIVE_MUZYKA, MEMORY_FIVE_SIARA, LAST_SPONTANEOUS_CALL, TIME_BETWEEN_CALLS
|
from constants import (
|
||||||
|
ENCODING,
|
||||||
|
LAST_SPONTANEOUS_CALL,
|
||||||
|
LOGFILE,
|
||||||
|
LOGSTORE,
|
||||||
|
MEMORY_FIVE_MUZYKA,
|
||||||
|
MEMORY_FIVE_SIARA,
|
||||||
|
TIME_BETWEEN_CALLS,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class AdministrationModule(commands.Cog):
|
class AdministrationModule(commands.Cog):
|
||||||
@@ -26,14 +34,17 @@ class AdministrationModule(commands.Cog):
|
|||||||
)
|
)
|
||||||
async def galeria_slaw(self, ctx):
|
async def galeria_slaw(self, ctx):
|
||||||
|
|
||||||
fnord = discord.File(
|
|
||||||
"/home/pi/Conjurer/niech_spierdala.png", spoiler=False, description="Niech spierdala"
|
|
||||||
)
|
|
||||||
|
|
||||||
for guild in self.bot.guilds:
|
for guild in self.bot.guilds:
|
||||||
async for entry in guild.bans(limit=1500):
|
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)
|
fnord = discord.File(
|
||||||
|
"/home/pi/Conjurer/niech_spierdala.png",
|
||||||
|
spoiler=False,
|
||||||
|
description="Niech spierdala",
|
||||||
|
)
|
||||||
|
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",
|
||||||
@@ -108,7 +119,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 ?
|
# 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