2020-06-06 01:45:24 +02:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from discord.ext import commands
|
|
|
|
|
|
|
|
from tuxbot.core import checks
|
|
|
|
from tuxbot.core.bot import Tux
|
|
|
|
from tuxbot.core.i18n import Translator
|
|
|
|
|
2020-06-11 01:06:30 +02:00
|
|
|
log = logging.getLogger("tuxbot.cogs.anti_raid")
|
|
|
|
T_ = Translator("AntiRaid", __file__)
|
2020-06-06 01:45:24 +02:00
|
|
|
|
|
|
|
|
2020-06-11 01:06:30 +02:00
|
|
|
class AntiRaid(commands.Cog, name="AntiRaid"):
|
2020-06-06 01:45:24 +02:00
|
|
|
def __init__(self, bot: Tux):
|
|
|
|
self.bot = bot
|
|
|
|
|
|
|
|
@commands.group(
|
2020-06-06 18:51:47 +02:00
|
|
|
name="anti_raid",
|
|
|
|
alias=["anti-raid", "raid_protect", "raid-protect", "no_raid", "no-raid"],
|
2020-06-06 01:45:24 +02:00
|
|
|
)
|
|
|
|
@commands.guild_only()
|
|
|
|
@checks.is_admin()
|
2020-06-11 01:06:30 +02:00
|
|
|
async def _anti_raid(self, ctx: commands.Context):
|
2020-06-06 01:45:24 +02:00
|
|
|
pass
|