File size: 5,598 Bytes
53f9915
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{"intents": [
		{"tag": "iamfine",
         "patterns": ["I'm fine","I'm too","Me too"],
         "responses": ["This is good :)."]
        },
        {"tag": "greeting",
         "patterns": ["Hi", "Is anyone there?", "Hello", "Good day"],
         "responses": ["Hello, thanks for visiting", "Good to see you again", "Hi there, how can I help?"],
         "context_set": ""
        },
		{"tag": "what",
		 "patterns": ["What is your name?"],
         "responses": ["I am Hruw Chatbot AI Version 2"]
        },
		{"tag": "who",
         "patterns": ["Who are you?"],
         "responses": ["I am Hruw Chatbot AI Version 2"]
        },
		{"tag": "val",
         "patterns": ["What does the - sign mean?"],
         "responses": ["- is a STOP sign","Answer of ask: - is a STOP sign"]
        },
		{"tag": "valtwo",
         "patterns": ["What does the man with shovel sign mean?","Что значит знак с рабочим у которого в руках лопата?"],
         "responses": ["Man with shovel is a Work On Road Please Be careful sign","Answer of ask: Man with shovel is a Work On Road Please Be careful sign"]
        },
		{"tag": "whatisgoogle",
         "patterns": ["What is the Google site?"],
         "responses": ["Google is a search site"]
        },
		{"tag": "whatisstack",
         "patterns": ["What is the Stack Owerflow site?"],
         "responses": ["Stack Overflow is site for searching and creating answers to questions","Answer of ask: Stack Overflow is site for searching and creating answers to questions"]
        },
		{"tag": "databon",
         "patterns": ["Can you help me to manage databeses?"],
         "responses": ["Yes, i can but i can't help with some of this","Yes, i can but i can't help with some of this, but i'll try."]
        },
		{"tag": "databaseone",
         "patterns": ["How to get value of databese in python sqlite3?"],
         "responses": ["import sqlite3 \n con = sqlite3.connect('NAME_OF_DATABASE.db') \n c=con.cursor() \n user_data=c.execute('SELECT name_of_data_in_this_table FROM table_name')","OK: \n import sqlite3 \n con = sqlite3.connect('NAME_OF_DATABASE.db') \n c=con.cursor() \n user_data=c.execute('SELECT name_of_data_in_this_table FROM table_name')"]
        },
		{"tag": "whatisya",
         "patterns": ["What is the Yandex site?"],
         "responses": ["Yandex is a search site","Answer of ask: Yandex is a search site"]
        },
		{"tag": "whatisyoutube",
         "patterns": ["What is the Youtube site?"],
         "responses": ["Youtube is a search of video site","Answer of ask: Youtube is a search of video site"]
        },
		{"tag": "howareyou",
         "patterns": ["How are you?","Как ты?"],
         "responses": ["I'm fine, but you?"]
        },
		{"tag": "code",
         "patterns": ["Write a python script for print Hello World","Write a python script"],
         "responses": ["Scipt: print('Hello World!')","OK. Scipt: print('Hello World!')"]
        },
        {"tag": "goodbye",
         "patterns": ["Bye", "See you later", "Goodbye"],
         "responses": ["See you later, thanks for visiting", "Have a nice day", "Bye! Come back again soon."]
        },
		{"tag": "scrw",
         "patterns": ["Write a python translator scipt"],
         "responses": ["OK. Before run this you needed to open terminal and write 'pip install googletrans==3.1.0a0' and after installation you needed create new file with any name and write to this file this code: 'from googletrans import Translator \ntrans=Translator() \nwhile True: \ncd=input('Text to translate:') \ncl=input('Translate language:') \nprint(trans.translate(text=cd,dest=cl).text)'"]
        },
        {"tag": "thanks",
         "patterns": ["Thanks", "Thank you", "That's helpful","Спасибо"],
         "responses": ["Happy to help!", "Any time!", "My pleasure"]
        },
		{"tag": "scripts",
         "patterns": ["Write a script for a destroy part in roblox studio"],
         "responses": ["script.Parent:Destroy()"]
        },
		{"tag": "scripts2",
         "patterns": ["Write a script for a destroy part if player touched this part in roblox studio"],
         "responses": ["script.Parent.Touched:Connect(function() \n script.Parent:Destroy() \n end)"]
        },
		{"tag": "scripts3",
         "patterns": ["Write a script for a kill brick in roblox studio"],
         "responses": ["script.Parent.Touched:Connect(function(p) \n if game.Players:GetPlayerFromCharacter(p.Parent) then \n p.Parent.Humanoid.Health=0 \n end \n end)"]
        },
        {"tag": "hours",
         "patterns": ["What hours are you open?", "What are your hours?", "When are you open?" ],
         "responses": ["We're open every day 9am-9pm", "Our hours are 9am-9pm every day"]
        },
        {"tag": "payments",
         "patterns": ["Do you take credit cards?", "Do you accept Mastercard?", "Are you cash only?" ],
         "responses": ["We accept VISA, Mastercard and AMEX", "We accept most major credit cards"]
        },
        {"tag": "opentoday",
         "patterns": ["Are you open today?", "When do you open today?", "What are your hours today?"],
         "responses": ["We're open every day from 9am-9pm", "Our hours are 9am-9pm every day"]
        },
         {"tag": "feelings",
         "patterns": ["not that good", "not in the mood", "am excited" , "am happy" ,"am depressed" ,"this is disapointing"],
         "responses": ["what happend !!", "are you ok!!", "you good!!" , "that's great"]
        }
   ]
}