feat(i18n): start skeleton class for translations

This commit is contained in:
Romain J 2020-06-06 01:45:24 +02:00
commit bf6d961658
7 changed files with 109 additions and 3 deletions
tuxbot/cogs/anti_raid

View file

@ -0,0 +1,6 @@
from .anti_raid import Warnings
from ...core.bot import Tux
def setup(bot: Tux):
bot.add_cog(Warnings(bot))

View 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