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:
+1
-4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user