mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
alert console bell when AI is done
This commit is contained in:
@@ -4,3 +4,5 @@ venv/
|
||||
saves/*
|
||||
story*.json
|
||||
!*.gitkeep
|
||||
prompts/*
|
||||
!/prompts/cloveranon-prompts/*
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user