Files
ShiteMusicBot/cogs/utils/context.py
T
Roxedus f898dd7582 PEP8
A whole FUCK TON of PEP8 improvements
2019-07-03 19:26:48 +02:00

11 lines
337 B
Python

from discord.ext import commands
class Context(commands.Context):
def __init__(self, **kwargs):
super().__init__(**kwargs)
if self.message.guild:
self.locale = self.bot.settings.get(self.message.guild, 'locale', 'default_locale')
else:
self.locale = self.bot.settings.default_locale