feat(i18n): start skeleton class for translations
This commit is contained in:
parent
dbf7f3ce8e
commit
bf6d961658
7 changed files with 109 additions and 3 deletions
tuxbot/cogs/anti_raid
6
tuxbot/cogs/anti_raid/__init__.py
Normal file
6
tuxbot/cogs/anti_raid/__init__.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from .anti_raid import Warnings
|
||||
from ...core.bot import Tux
|
||||
|
||||
|
||||
def setup(bot: Tux):
|
||||
bot.add_cog(Warnings(bot))
|
24
tuxbot/cogs/anti_raid/anti_raid.py
Normal file
24
tuxbot/cogs/anti_raid/anti_raid.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
import logging
|
||||
|
||||
from discord.ext import commands
|
||||
|
||||
from tuxbot.core import checks
|
||||
from tuxbot.core.bot import Tux
|
||||
from tuxbot.core.i18n import Translator
|
||||
|
||||
log = logging.getLogger("tuxbot.cogs.anti_raid")
|
||||
T_ = Translator("AntiRaid", __file__)
|
||||
|
||||
|
||||
class AntiRaid(commands.Cog, name="AntiRaid"):
|
||||
def __init__(self, bot: Tux):
|
||||
self.bot = bot
|
||||
|
||||
@commands.group(
|
||||
name='anti_raid',
|
||||
alias=['anti-raid', 'raid_protect', 'raid-protect', 'no_raid', 'no-raid']
|
||||
)
|
||||
@commands.guild_only()
|
||||
@checks.is_admin()
|
||||
async def _warn(self, ctx: commands.Context):
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue