mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Core] Use owner set in config (#3294)
* Update bot.py * Create 3293.misc.rst * style: forking whitespace
This commit is contained in:
parent
a0f548fc0b
commit
ab3b567cd8
1
changelog.d/3293.misc.rst
Normal file
1
changelog.d/3293.misc.rst
Normal file
@ -0,0 +1 @@
|
||||
Properly set owner from config during bot's pre-flight.
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user