File size: 2,083 Bytes
95070e8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
RESPONSES = {
'welcome': {
'en':
"""Welcome to the Decision Making Helper Bot! ๐ค
I can help you make decisions in English or Hebrew.
Just ask me a question or use /start followed by your question.
For example: /start Should I go to the beach today?""",
'he':
"""ืืจืืืื ืืืืื ืืืื ืฉืขืืืจ ืืงืื ืืืืืืืช! ๐ค
ืื ื ืืืื ืืขืืืจ ืืงืื ืืืืืืช ืืขืืจืืช ืื ืืื ืืืืช.
ืคืฉืื ืฉืืื ืืืชื ืฉืืื ืื ืืฉืชืืฉื ื- /start ืืืืจืื ืืฉืืื.
ืืืืืื: /start ืืื ืืืื ืื ืืืืช ืืืื ืืื?"""
},
'help': {
'en':
"""Here's how to use the Decision Making Helper Bot:
1. Ask a question directly
2. Use /start followed by your question
3. Wait for my response
I'll analyze your question and help you make a decision!""",
'he':
"""ืื ื ืืืฆื ืืืฉืชืืฉ ืืืื ืฉืขืืืจ ืืงืื ืืืืืืช:
1. ืฉืืื ืฉืืื
2. ืืฉืชืืฉื ื- /start ืืืืจืื ืฉืืื ืืช ืืฉืืื
3. ืืืชืื ื ืืชืฉืืื ืฉืื
ืื ื ืื ืชื ืืช ืืฉืืื ืืืขืืืจ ืืงืื ืืืืื!"""
},
'decide_help': {
'en': "Please provide a question after the /start command!",
'he': "ืื ื ืืืกืืคื ืฉืืื ืืืจื ืืคืงืืื /start!"
},
'decision': {
'en': "Regarding: {question}\nMy decision is: {decision}",
'he': "ืืืื ืืฉืืื: {question}\nืืืืืื ืฉืื ืืื: {decision}"
},
'no_question': {
'en': "Please ask me a question to help you decide!",
'he': "ืื ื ืฉืืื ืืืชื ืฉืืื ืืื ืฉืืืื ืืขืืืจ ืืื ืืืืืื!"
},
'error': {
'en': "Sorry, an error occurred. Please try again later.",
'he': "ืืฆืืขืจ, ืืืจืขื ืฉืืืื. ืื ื ื ืกื ืฉืื ืืืืืจ ืืืชืจ."
}
}
def get_response(key: str, language: str) -> str:
"""
Get the response string for a given key and language.
"""
return RESPONSES.get(key, {}).get(language, RESPONSES[key]['en'])
|