diff --git a/sweebot.py b/sweebot.py index 850fbb4..a6cd137 100644 --- a/sweebot.py +++ b/sweebot.py @@ -535,7 +535,6 @@ while True: try: aiconnector = cai.connect() chatquery = f"--Listen Up--\nYour happiness level is {happiness} (Maximum 10), your emotion level will impact the conversation's tone.\n--END Listen Up--\n--IRC recieve--\n<{nick}> " + " ".join(command[1:]) - lastquery = chatquery if channel in ai_storage: aimsg = aiconnector.send_message(CAImodel, ai_storage[channel], chatquery) else: @@ -545,6 +544,7 @@ while True: aimsg = aiconnector.send_message(CAImodel, new.chat_id, chatquery) ai_storage[channel] = new.chat_id multiline(aimsg.text, channel) + lastquery = f"

Channel: {channel}

Request:




Response



" except: multiline("Something went wrong while connecting to Character.AI.", channel) print(traceback.format_exc())