bug fix on .clear function

This commit is contained in:
Dustin 2024-08-07 15:57:16 -04:00
parent e746154626
commit 472d8104c4

View File

@ -217,6 +217,7 @@ class ollamarama:
#set new global personality
if message.startswith(".gpersona "):
self.messages.clear()
m = message.split(" ", 1)[1]
if m != None:
if m == 'reset':
@ -233,7 +234,8 @@ class ollamarama:
if message == ".clear":
self.messages.clear()
self.model = self.default_model
self.temperature, self.top_p, self.repeat_penalty = self.defaults
self.personality = self.default_personality
self.temperature, self.top_p, self.repeat_penalty = self.defaults.values()
await self.send_message(room_id, "Bot has been reset for everyone")