|
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']) |
|
|