alert console bell when AI is done

This commit is contained in:
cloveranon
2019-12-17 02:22:27 -05:00
parent 799b3fd930
commit 71eb4438e2
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -4,3 +4,5 @@ venv/
saves/*
story*.json
!*.gitkeep
prompts/*
!/prompts/cloveranon-prompts/*
+2
View File
@@ -171,6 +171,7 @@ def play():
if action == "":
action = ""
result = story_manager.act(action)
print('\x07', end='')
colPrint(result, colors["AIText"])
elif action[0] == '"':
@@ -191,6 +192,7 @@ def play():
action = "\n> " + action + "\n"
result = "\n" + story_manager.act(action)
print('\x07', end='')
if len(story_manager.story.results) >= 2:
similarity = get_similarity(
story_manager.story.results[-1], story_manager.story.results[-2]