Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"), README, CLI strings, and branch (coven → hack-house). Gitea repo renamed cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest + golden-vector test still green, binary is now `hack-house`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
# flake8: noqa: E501
|
|
|
|
import random
|
|
import sys
|
|
|
|
|
|
# fmt: off
|
|
ascii_phrases = {
|
|
'Farewell', 'Bye', 'See you later', 'Take care', 'So long', 'Adieu', 'Cheerio',
|
|
'Goodbye', 'Adios', 'Au revoir', 'Arrivederci', 'Sayonara', 'Auf Wiedersehen',
|
|
'Do svidaniya', 'Annyeong', 'Tot ziens', 'Ha det', 'Selamat tinggal',
|
|
'Hasta luego', 'Nos vemos', 'Salut', 'Ciao', 'A presto',
|
|
'Dag', 'Tot later', 'Vi ses', 'Sampai jumpa',
|
|
}
|
|
|
|
non_ascii_phrases = {
|
|
'Tschüss', 'Zài jiàn', 'Bāi bāi', 'Míngtiān jiàn', 'Adeus', 'Tchau', 'Até logo',
|
|
'Hejdå', 'À bientôt', 'Bis später', 'Adjø',
|
|
'じゃね', 'またね', '안녕히 계세요', '잘 가', 'שלום',
|
|
'להתראות', 'مع السلامة', 'إلى اللقاء', 'وداعاً', 'अलविदा',
|
|
'फिर मिलेंगे',
|
|
}
|
|
|
|
all_phrases = ascii_phrases | non_ascii_phrases
|
|
# fmt: on
|
|
|
|
|
|
def get_goodbye() -> str: # pragma: no cover
|
|
is_utf8 = sys.stdout.encoding.lower() == "utf-8"
|
|
phrases = all_phrases if is_utf8 else ascii_phrases
|
|
return random.choice(list(phrases)) # nosec: B311
|