burme-coder-max / src /ui /thanking /thank_you.py
amkyawdev's picture
Upload folder using huggingface_hub
a7d7463 verified
Raw
History Blame Contribute Delete
2 kB
"""Basic Thank You - Show gratitude to user"""
import sys
import time
import random
from typing import Optional
from ..colors import Colors
class ThankYou:
"""Simple thank you display"""
THANK_MESSAGES = [
"🙏 Thank You for using Burme-Coder-Max! 🙏",
စကားမှန်များနှင.။ Thank you! 🙏",
" 🙏 Thank you! Your support means a lot! 🙏",
"🙏 Gratias! Thanks for being awesome! 🙏",
"🙏 ကျေးဇူးတင,�မ.်ပါတယ,်! 🙏",
]
@classmethod
def show(cls, message: Optional[str] = None):
"""Display thank you message"""
if message:
thank_text = f"🙏 {message} 🙏"
else:
thank_text = random.choice(cls.THANK_MESSAGES)
print()
print(thank_text)
print()
@classmethod
def show_animation(cls):
"""Show animated thank you"""
print()
print("\033[96m🙏\033[0m", end="", flush=True)
time.sleep(0.1)
print("\033[96m 💫\033[0m", end="", flush=True)
time.sleep(0.1)
print("\033[96m ✨\033[0m", flush=True)
print(random.choice(cls.THANK_MESSAGES))
print("\033[96m ✨\033[0m", end="", flush=True)
time.sleep(0.1)
print("\033[96m 💫\033[0m", end="", flush=True)
time.sleep(0.1)
print("\033[96m 🙏\033[0m")
print()
@classmethod
def show_with_emoji(cls, emoji: str = "🙏"):
"""Show thank you with custom emoji"""
messages = [
f"{emoji} Thank you for using Burme-Coder-Max! {emoji}",
f"{emoji} Your support is appreciated! {emoji}",
f"{emoji} Thanks for choosing Burme-Coder-Max! {emoji}",
]
print()
print(random.choice(messages))
print()
def quick_thank():
"""Quick thank you without animation"""
print("\n🙏 ကျေးဇူးတင,�ပ,ါတယ,်! 🙏\n")