-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaptopbot.py
1774 lines (1628 loc) · 166 KB
/
laptopbot.py
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import sys
from numpy.core.numeric import False_
sys.path.insert(0, 'E:/Project/ML_and_DL/CBD/ChatBot/~/ParlAI/')
import re, json
import pandas as pd
import mysql.connector as msql
from mysql.connector import Error
from parlai_internal.agents.laptopbot.Configuration.parameter_constants import *
from parlai_internal.agents.laptopbot.Configuration.notification import *
from parlai_internal.agents.laptopbot.Report.generate_invoice import create_invoice
from datetime import datetime
from parlai_internal.agents.laptopbot.Chart.plot_invoice import create_plot_invoice
from parlai_internal.agents.laptopbot.Report.generate_invoice import create_invoice
from parlai.core.agents import register_agent, Agent
class Laptop():
def __init__(self, laptop_ID, Company, Product, TypeName, Inches, ScreenResolution, Cpu, Ram, Memory, GPU, OpSys, Weight, Price_euros):
self.laptop_ID = laptop_ID
self.Company = Company
self.Product = Product
self.TypeName = TypeName
self.Inches = Inches
self.ScreenResolution = ScreenResolution
self.Cpu = Cpu
self.Ram = Ram
self.Memory = Memory
self.GPU = GPU
self.OpSys = OpSys
self.Weight = Weight
self.Price_euros = Price_euros
def info(self):
return (f'- Laptop ID: {self.laptop_ID}\n'
f'- Company: {self.Company}\n'
f'- Product: {self.Product}\n'
f'- Type Name: {self.TypeName}\n'
f'- Inches: {self.Inches}\n'
f'- Screen Resolution: {self.ScreenResolution}\n'
f'- CPU: {self.Cpu}\n'
f'- Ram: {self.Ram}\n'
f'- Memory: {self.Memory}\n'
f'- GPU: {self.GPU}\n'
f'- Operation System: {self.OpSys}\n'
f'- Weight: {self.Weight}\n'
f'- Price: {self.Price_euros}\n')
class Query():
def __init__(self, host, database, user, password):
self.host = host
self.database = database
self.user = user
self.password = password
self.db = msql.connect(host=self.host, database=self.database,
user=self.user, password=self.password)
self.count = 0
def query_check_info(self, OS, typeLap, origin, inches):
merge_result = ""
cursor = self.db.cursor()
query_check = "SELECT * FROM laptop_price_data WHERE OpSys = '%s' AND TypeName = '%s' AND Company = '%s' AND Inches = '%s'" %(OS, typeLap, origin, inches)
try:
cursor.execute(query_check)
results = cursor.fetchall()
for row in results:
ID, Company, Product, TypeName, Inches = row[0], row[1], row[2], row[3], row[4]
ScreenResolution, Cpu, Ram, Memory = row[5], row[6], row[7], row[8]
GPU, OpSys, Weight, Price_euros = row[9], row[10], row[11], row[12]
laptop = Laptop(ID, Company, Product, TypeName, Inches, ScreenResolution,
Cpu, Ram, Memory, GPU, OpSys, Weight, Price_euros)
self.count += 1
merge_result = merge_result + "\n" + laptop.info()
except:
print("Error fetching data.")
finally:
self.count = 0
return merge_result
def query_ID(self, id):
cursor = self.db.cursor()
query_id = "SELECT * FROM laptop_price_data WHERE laptop_ID = '%s'" % (
id)
try:
cursor.execute(query_id)
results = cursor.fetchall()
if results == []:
return "Not found"
for row in results:
ID, Company, Product, TypeName, Inches = row[0], row[1], row[2], row[3], row[4]
ScreenResolution, Cpu, Ram, Memory = row[5], row[6], row[7], row[8]
GPU, OpSys, Weight, Price_euros = row[9], row[10], row[11], row[12]
laptop = Laptop(ID, Company, Product, TypeName, Inches, ScreenResolution,
Cpu, Ram, Memory, GPU, OpSys, Weight, Price_euros)
except:
print("Error fetching data.")
finally:
return laptop.info()
def query_auto_Invoice(self, laptop_id):
restructure = []
cursor = self.db.cursor()
query_month = "SELECT Company, Product, Cpu, Ram, Memory, Price_euros FROM laptop_price_data WHERE laptop_ID = '%s' ORDER BY laptop_ID" % (
laptop_id)
try:
cursor.execute(query_month)
result = list(cursor.fetchall()[0])
restructure.append(result[0] + " - " + result[1])
if result[2][11] == 'i':
if result[4][6] == "S":
restructure.append(result[2][11:19] + '\n' + result[3] + '/' + result[4])
else:
restructure.append(result[2][11:19] + '\n' + result[3] + '/' + result[4][0:6])
else:
if result[4][6] == "S":
restructure.append(result[2][0:14] + '\n' + result[3] + '/' + result[4])
else:
restructure.append(result[2][0:14]+ '\n' + result[3] + '/' + result[4][0:6])
restructure.append(result[5])
except:
print("Error fetching data.")
return restructure
class Intent():
def __init__(self, data_rule_based = './parlai_internal/agents/laptopbot/Data/intents_rule-based.json', key="default", match_intent=None, user_quant=0):
self.rule_based = data_rule_based
# Opening JSON file
f = open(self.rule_based)
self.rule_based = json.load(f)
for intent, keys in self.rule_based['intents'][0].items():
for i in range(0, len(keys)):
keys[i] = '.*' + keys[i] + '.*'
self.rule_based['intents'][0][intent] = re.compile('|'.join(keys))
self.intents = self.rule_based['intents'][0]
self.responses = self.rule_based['responses'][0]
self.key = key
self.match_intent = match_intent
self.user_quant = user_quant
def _find_intent(self, message):
for intent, pattern in self.intents.items():
if re.search(pattern, message):
self.match_intent = intent
if self.match_intent in self.responses:
self.key = self.match_intent
else:
self.key = "default"
return self.key
class CheckIn_Database():
def __init__(self, host, database, user, password):
self.host_checkIn = host
self.database_checkIn = database
self.user_checkIn = user
self.password_checkIn = password
self.db_checkIn = msql.connect(host=self.host_checkIn, database=self.database_checkIn,
user=self.user_checkIn, password=self.password_checkIn)
def _save_to_database(self, invoice_db):
cursor = self.db_checkIn.cursor()
insert_sql = "INSERT INTO auto_record_order.auto_record_order_data VALUES (%s,%s,%s,%s,%s,%s)"
cursor.execute(insert_sql, tuple(invoice_db))
self.db_checkIn.commit()
@register_agent("laptopbot")
class LaptopbotAgent(Agent, Intent, Query, CheckIn_Database):
@classmethod
def add_cmdline_args(cls, parser, partial_opt):
parser.add_argument('--name', type=str, default='laptopbot', help="The agent's name.")
return parser
def __init__(self, opt, shared=None, Respond=None):
# similar to the teacher, we have the Opt and the shared memory objects!
super().__init__(opt, shared)
Intent.__init__(self)
Query.__init__(self, SERVER, DATABASE_LAPTOP, USER, PASSWORD)
CheckIn_Database.__init__(self, SERVER, DATABASE_AUTO_RECORD_ORDER, USER, PASSWORD)
self.decision = ""
self.id = 'Laptopbot'
self.name = opt['name']
self.Respond = Respond
# Help check information
self.name_state = False
self.user_name = "temp"
self.welcome_state = False
self.Osystem_key = False
self.typeLab_key = False
self.origin_key = False
self.inches_key = False
self.user_os = ""
self.user_typeLab = ""
self.user_origin = ""
self.user_inches = ""
# Help create an invoice
self.user_laptopid = None
self.quant = 0
self.primary_invoice = False
self.other_1 = False
self.other_2 = False
self.other_3 = False
self.other_4 = False
self.other_5 = False
self.other_6 = False
self.other_7 = False
self.other_8 = False
self.quantity_0 = False
self.quantity_1 = False
self.quantity_2 = False
self.quantity_3 = False
self.quantity_4 = False
self.quantity_5 = False
self.quantity_6 = False
self.state_order = False
# Store transcript
self.transcript = []
self.invoice = pd.DataFrame(columns=['Product', 'Information', 'Price', 'Quantity'])
self.invoice_db = pd.DataFrame(columns=['Product', 'Information', 'Price', 'Quantity', 'Customer', "Time"])
self.now = datetime.now()
self.today = datetime.today().strftime("%d_%m_%Y")
self.current_time = self.now.strftime("%Hh")
def save_as_txt(self, content, who, user_name):
with open("./parlai_internal/agents/laptopbot/Record/transcript_" + self.current_time + "_" + self.today + "_" + user_name +".txt", "a+") as file_object:
file_object.seek(0)
data = file_object.read(100)
if len(data) > 0 :
file_object.write("\n")
file_object.write(who + content)
def _invoice(self, id_laptop, quantity):
invoice_query = Query.query_auto_Invoice(self, id_laptop)
invoice_query.append(quantity)
self.invoice.loc[str(self.invoice.shape[0])] = invoice_query
invoice_db = invoice_query
invoice_db.append(self.user_name)
invoice_db.append(self.today)
CheckIn_Database._save_to_database(self, invoice_db)
self.invoice_db.loc[str(self.invoice_db.shape[0])] = invoice_db
self.invoice_db.to_csv("./Data/auto_record_order.csv", mode="a", index=False, header=False)
def observe(self, observation):
Query.__init__(self, SERVER, DATABASE_LAPTOP, USER, PASSWORD)
message = observation.get('text', '')
self.save_as_txt(message, "User: ", self.user_name)
if self.name_state == True and self.welcome_state == True:
Intent._find_intent(self,message)
if self.key == "help":
# Windows 10, 2 in 1 Convertible, Dell
if message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "11.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "12.5"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "6" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Dell"
self.Respond = "How many inches do you want the screen to be? (11.6, 12.5, 13.3, 15, 15.6, 17.3 inches)\n Please press key 1 to 6 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, 2 in 1 Convertible, Acer
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "11.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Acer"
self.Respond = "How many inches do you want the screen to be? (11.6, 13.3, 14 inches)\n Please press key 1 to 3 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, 2 in 1 Convertible, Asus
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "11.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Asus"
self.Respond = "How many inches do you want the screen to be? (11.6, 13.3, 15.6 inches)\n Please press key 1 to 3 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, 2 in 1 Convertible, HP
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "11.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "HP"
self.Respond = "How many inches do you want the screen to be? (11.6, 13.3, 14, 15.6 inches)\n Please press key 1 to 4 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, 2 in 1 Convertible, Lenovo
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "10.1"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "11.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.9"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "6" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Lenovo"
self.Respond = "How many inches do you want the screen to be? (10.1, 11.3, 13.3, 13.9, 14, 15.6 inches)\n Please press key 1 to 6 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, 2 in 1 Convertible, Samsung
elif message == "6" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key = False, False, False
self.user_origin = "Samsung"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, "15.0")
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, 2 in 1 Convertible, Mediacom
elif message == "7" and self.user_os == "Windows 10" and self.user_typeLab == "2 in 1 Convertible" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key = False, False, False
self.user_origin = "Mediacom"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, "11.6")
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, 2 in 1 Convertible
elif message == "1" and self.user_os == "Windows 10" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == False:
self.origin_key = True
self.user_typeLab = "2 in 1 Convertible"
self.Respond = "With origin of laptop, we have the following 7 categories: Dell, Acer, Asus, HP, Lenovo, Samsung, Mediacom\n Please press from 1 to 7 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming, Dell
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Dell"
self.Respond = "How many inches do you want the screen to be? (15.6, 17.3 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming, Acer
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Acer"
self.Respond = "How many inches do you want the screen to be? (15.6, 17.3 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming, Asus
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Asus"
self.Respond = "How many inches do you want the screen to be? (15.6, 17.3 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming, HP
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "HP"
self.Respond = "How many inches do you want the screen to be? (15.6, 17.3 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming, Lenovo
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Lenovo"
self.Respond = "How many inches do you want the screen to be? (15.6, 17.3 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming, MSI
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "MSI" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "MSI" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "MSI" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "MSI" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "18.4"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "6" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "MSI"
self.Respond = "How many inches do you want the screen to be? (14, 15.6, 17.3, 18.4)?\n Please press key 1 to 4 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming, Razer
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Razer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.user_origin == "Razer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "7" and self.user_os == "Windows 10" and self.user_typeLab == "Gaming" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Razer"
self.Respond = "How many inches do you want the screen to be? (14, 17.3 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Gaming
elif message == "2" and self.user_os == "Windows 10" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == False:
self.origin_key = True
self.user_typeLab = "Gaming"
self.Respond = "With origin of laptop, we have the following 11 categories: Dell, Acer, Asus, HP, Lenovo, MSI, Razer\n Please press from 1 to 7 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Dell
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Dell"
self.Respond = "How many inches do you want the screen to be? (13.3, 14, 15.6, 17.3 inches)?\n Please press key 1 to 4 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Acer
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "11.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Acer"
self.Respond = "How many inches do you want the screen to be? (11.6, 13.3, 14, 15.6, 17.3 inches)?\n Please press key 1 to 5 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Asus
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.1"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Asus"
self.Respond = "How many inches do you want the screen to be? (13.3, 14, 14.1, 15.6, 17.3 inches)?\n Please press key 1 to 5 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, HP
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "HP"
self.Respond = "How many inches do you want the screen to be? (13.3, 14, 15.6, 17, 17.3 inches)?\n Please press key 1 to 5 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Lenovo
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "11.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "17.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Lenovo"
self.Respond = "How many inches do you want the screen to be? (11.6, 13.3, 14, 15.6, 17.3 inches)?\n Please press key 1 to 5 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Chuwi
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Chuwi" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "12.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Chuwi" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "6" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Chuwi"
self.Respond = "How many inches do you want the screen to be? (12.3, 15.6 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Fujitsu
elif message == "7" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key == True and self.inches_key == False and self.origin_key == True:
self.typeLab_key, self.Osystem_key, self.origin_key = False, False, False
self.user_origin = "Fujitsu"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, "15.6")
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Toshiba
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Toshiba" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Toshiba" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Toshiba" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "8" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Toshiba"
self.Respond = "How many inches do you want the screen to be? (13.3, 14.0, 15.6 inches)?\n Please press key 1 to 3 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Samsung
elif message == "9" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key == True and self.inches_key == False and self.origin_key == True:
self.typeLab_key, self.Osystem_key, self.origin_key = False, False, False
self.user_origin = "Samsung"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, "15.6")
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Mediacom
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Mediacom" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Mediacom" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "10" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Mediacom"
self.Respond = "How many inches do you want the screen to be? (13.3, 14.0 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook, Vero
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Vero" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.user_origin == "Vero" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "11" and self.user_os == "Windows 10" and self.user_typeLab == "Notebook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Vero"
self.Respond = "How many inches do you want the screen to be? (13.3, 14.0 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Notebook
elif message == "3" and self.user_os == "Windows 10" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == False:
self.origin_key = True
self.user_typeLab = "Notebook"
self.Respond = "With origin of laptop, we have the following 11 categories: Dell, Acer, Asus, HP, Lenovo, Chuwi, Fujitsu, Toshiba, Samsung, Mediacom, Vero\n Please press from 1 to 11 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Dell
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "12.5"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Dell" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Dell"
self.Respond = "How many inches do you want the screen to be? (12.5, 13.3, 14, 15.6 inches)?\n Please press key 1 to 4 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Acer
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Acer" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Acer"
self.Respond = "How many inches do you want the screen to be? (13.3, 14 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Asus
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "12.5"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Asus" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Asus"
self.Respond = "How many inches do you want the screen to be? (12.5, 13.3, 14.0, 15.6 inches)?\n Please press key 1 to 4 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, HP
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "12.5"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "HP" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "4" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "HP"
self.Respond = "How many inches do you want the screen to be? (12.5, 13.3, 14.0, 15.6 inches)?\n Please press key 1 to 4 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Lenovo
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "12.5"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Lenovo" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "5" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Lenovo"
self.Respond = "How many inches do you want the screen to be? (12.5, 14.0, 15.6 inches)?\n Please press key 1 to 4 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Huawei
elif message == "6" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key= False, False, False
self.user_origin = "Huawei"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, "13.0")
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, LG
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "LG" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "LG" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.6"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "7" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "LG"
self.Respond = "How many inches do you want the screen to be? (14.0, 15.6 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Toshiba
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Toshiba" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "12.5"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Toshiba" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "3" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Toshiba" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "14.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "8" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Toshiba"
self.Respond = "How many inches do you want the screen to be? (12.5, 13.3, 14 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Samsung
elif message == "1" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Samsung" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "13.3"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "2" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.user_origin == "Samsung" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == True and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key, self.inches_key = False, False, False, False
self.user_inches = "15.0"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, self.user_inches)
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
elif message == "9" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.inches_key = True
self.user_origin = "Samsung"
self.Respond = "How many inches do you want the screen to be? (13.3, 15.0 inches)?\n Please press key 1 to 2 for the respective categories above"
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Xiaomi
elif message == "10" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key= False, False, False
self.user_origin = "Xiaomi"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, "13.3")
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook, Razer
elif message == "11" and self.user_os == "Windows 10" and self.user_typeLab == "Ultrabook" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == True:
self.Osystem_key, self.typeLab_key, self.origin_key= False, False, False
self.user_origin = "Razer"
self.Respond = Query.query_check_info(self, self.user_os, self.user_typeLab, self.user_origin, "12.5")
self.save_as_txt(self.Respond, "Bot: ", self.user_name)
# Windows 10, Ultrabook
elif message == "4" and self.user_os == "Windows 10" and self.Osystem_key == True and self.typeLab_key== True and self.inches_key == False and self.origin_key == False: