development #1

Merged
AllfatherHatt merged 157 commits from development into master 2025-06-14 15:47:26 +02:00
Showing only changes of commit cdb5d20fa9 - Show all commits

View File

@ -14,16 +14,16 @@ from .memory import MemoryMixin
class ReginaldCog(commands.Cog, PermissionsMixin, BlacklistMixin, MemoryMixin): class ReginaldCog(commands.Cog, PermissionsMixin, BlacklistMixin, MemoryMixin):
def __init__(self, bot): def __init__(self, bot):
super().__init__() # ✅ Call parent class constructor first
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=71717171171717) 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.default_listening_channel = 1085649787388428370
self.memory_locks = {} 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 # ✅ Properly Registered Configuration Keys
default_global = {"openai_model": "gpt-4o-mini"} default_global = {"openai_model": "gpt-4o-mini"}
default_guild = { default_guild = {