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/core/utils/functions

View file

@ -6,7 +6,8 @@ from discord.ext import commands, flags
class ContextPlus(commands.Context):
async def send(self, content=None, *args, **kwargs):
if (hasattr(self.command, 'deletable') and self.command.deletable) \
if (hasattr(self.command, 'deletable')
and self.command.deletable) \
and kwargs.pop('deletable', True):
message = await super().send(content, *args, **kwargs)
await message.add_reaction('🗑')