Update personality.py

This commit is contained in:
Saifeddine ALOUI 2023-11-09 09:53:48 +01:00 committed by GitHub
parent ec43807bc8
commit bfd5cee0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1226,6 +1226,8 @@ class APScript(StateMachine):
return string
def process(self, text:str, message_type:MSG_TYPE, callback=None):
if text is None:
return True
bot_says = self.bot_says + text
antiprompt = self.personality.detect_antiprompt(bot_says)