bug fixes
This commit is contained in:
parent
5a430afb74
commit
242b85f0e8
@ -126,7 +126,7 @@ class ollamarama:
|
|||||||
async def set_prompt(self, channel, sender, persona=None, custom=None, respond=True):
|
async def set_prompt(self, channel, sender, persona=None, custom=None, respond=True):
|
||||||
#clear existing history
|
#clear existing history
|
||||||
try:
|
try:
|
||||||
await self.messages[channel][sender].clear()
|
self.messages[channel][sender].clear()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if persona != None:
|
if persona != None:
|
||||||
@ -244,7 +244,10 @@ class ollamarama:
|
|||||||
|
|
||||||
#check if the message was sent after joining and not by the bot
|
#check if the message was sent after joining and not by the bot
|
||||||
if message_time > self.join_time and sender != self.username:
|
if message_time > self.join_time and sender != self.username:
|
||||||
await self.handle_message(message, sender, sender_display, channel)
|
try:
|
||||||
|
await self.handle_message(message, sender, sender_display, channel)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
async def main(self):
|
async def main(self):
|
||||||
# Login, print "Logged in as @alice:example.org device id: RANDOMDID"
|
# Login, print "Logged in as @alice:example.org device id: RANDOMDID"
|
||||||
|
Loading…
Reference in New Issue
Block a user