decision-helper-bot / responses.py
DeMaking's picture
Create responses.py
95070e8 verified
raw
history blame
2.08 kB
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'])