Moving parent init further down in calling order, this is dumb
This commit is contained in:
parent
f40227d0cd
commit
cdb5d20fa9
@ -14,16 +14,16 @@ from .memory import MemoryMixin
|
||||
|
||||
class ReginaldCog(commands.Cog, PermissionsMixin, BlacklistMixin, MemoryMixin):
|
||||
def __init__(self, bot):
|
||||
super().__init__() # ✅ Call parent class constructor first
|
||||
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=71717171171717)
|
||||
|
||||
self._config = self.config # ✅ Ensure MemoryMixin sees this before calling super
|
||||
|
||||
super().__init__() # ✅ Now it's safe to initialize parent classes
|
||||
|
||||
self.default_listening_channel = 1085649787388428370
|
||||
self.memory_locks = {}
|
||||
|
||||
# ✅ Ensure `MemoryMixin` can access `config`
|
||||
self._config = self.config # 🔥 This is the key part that enables `MemoryMixin.config`
|
||||
|
||||
# ✅ Properly Registered Configuration Keys
|
||||
default_global = {"openai_model": "gpt-4o-mini"}
|
||||
default_guild = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user