upgraded sink

This commit is contained in:
Saifeddine ALOUI 2025-02-15 20:21:38 +01:00
parent cb874b137e
commit 3b377449e2

View File

@ -131,6 +131,7 @@ class AIPersonality:
Raises:
ValueError: If the provided path is not a folder or does not contain a config.yaml file.
"""
self.sink_id = 0
self.config = config
self.bot_says = ""
@ -463,7 +464,15 @@ class AIPersonality:
)
def sink(self, s=None,i=None,d=None):
pass
if self.config.debug:
print(s,end="")
else:
animation = "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏"
ASCIIColors.yellow(animation[self.sink_id]+"\r")
if self.sink_id<9:
self.sink_id += 1
else:
self.sink_id = 0
def yes_no(
self,