Implement NPC memory and interaction system with SQLite database; add NPC data structure and dynamic NPC handling; integrate LLM for NPC conversations and quest generation.

This commit is contained in:
2025-10-02 11:05:33 +02:00
parent 7e76353c6a
commit a34ba3e6f6
21 changed files with 12669 additions and 37790 deletions
+1 -4
View File
@@ -41,9 +41,6 @@ class Client(commands.Bot):
await self.load_extension(f"cogs.{filename[:-3]}")
except Exception as e:
print(f"Failed to load {filename}: {e}")
memory = NPCMemory()
npc_handler = NPCHandler(memory)
await self.add_cog(NPCCog(self, npc_handler))
await self.tree.sync()
print("Loaded cogs")
@@ -51,7 +48,7 @@ class Client(commands.Bot):
def main():
load_dotenv()
client = Client()
token = os.getenv("TOKEN")
token = "ODA2Mjg0OTY2NzQ0NTU1NjAw.GFQoZn.Jh0OJ7KczDOfRxFFESnAPOiodUAkjSyjQ-ClGg"
if token is not None:
client.run(token)
else: