mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[Core] Use owner set in config (#3294)
* Update bot.py * Create 3293.misc.rst * style: forking whitespace
This commit is contained in:
@@ -404,6 +404,9 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin): # pylint: d
|
||||
init_global_checks(self)
|
||||
init_events(self, cli_flags)
|
||||
|
||||
if self.owner_id is None:
|
||||
self.owner_id = await self._config.owner()
|
||||
|
||||
i18n_locale = await self._config.locale()
|
||||
i18n.set_locale(i18n_locale)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user