diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index 881d894..8cb2150 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -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 = {