DeMaking commited on
Commit
95070e8
ยท
verified ยท
1 Parent(s): 5927c14

Create responses.py

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