-
Notifications
You must be signed in to change notification settings - Fork 3
/
match.py
97 lines (91 loc) · 2.61 KB
/
match.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
# -*-coding:utf-8-*-
AutoReplyMessage = [
['傻逼机器人', '再这样我可要生气咯!'], ['不够色', '再色群就没了!'], ['我好了', '不许好,憋回去!'], ['老婆', '谁是你老婆o((>ω< ))o']
]
AutoReplyImage = [
['盯', '1.jpg'],
['偷看', '3.jpg'],
['叮叮', '4.jpg'],
['棒', '6.jpg'],
['good', '5.jpg'],
['咚咚', '9.jpg'],
['爱你', '8.jpg'],
['好累', '11.jpg'],
['自闭', '12.jpg'],
['真的吗', '13.jpg'],
['早上好', '15.jpg'],
['晚安', '16.jpg'],
['睡觉', '16.jpg'],
['好闲', '17.jpg'],
['喂喂', '18.jpg'],
['。。。', '19.jpg'],
['啊啊啊啊啊', '20.jpg'],
['可爱', '21.jpg'],
['呜呜呜', '24.jpg'],
['疑问', '25.jpg'],
['饿了', '26.jpg'],
['嚼', '27.jpg'],
['哎', '30.jpg'],
['OK', '31.jpg'],
['不可能', '32.jpg'],
['辛苦了', '34.jpg'],
['拜托了', '36.jpg'],
['喵喵喵', '45.jpg'],
['tql', '46.jpg'],
['respect', '47.jpg'],
['明白了', '54.jpg'],
['好可怕', '65.jpg'],
['加油', '77.jpg'],
['恋童', '78.jpg'],
['炼铜', '78.jpg'],
['就是你', '85.jpg'],
['啊这', '92.jpg'],
['az', '92.jpg'],
['阿这', '92.jpg'],
['吃药了', '93.jpg'],
['好臭', '109.jpg'],
['瑟瑟发抖', '118.jpg'],
['哼哼', '136.png'],
['有了', '160.png'],
['战神', '135.jpg'],
['大佬', '140.jpg'],
['dalao', '140.jpg']
]
AutoReplyVoice = [
['早上好', '早上好.silk'],
['OK', 'OK.silk'],
['啊这', '啊这.silk'],
['爱你', '爱你.silk'],
['拜托了', '拜托了.silk'],
['不可能', '不可能.silk'],
['吵死了', '吵死了.silk'],
['大家好', '大家好.silk'],
['好臭', '好臭.silk'],
['警察', '警察.silk'],
['可爱', '可爱.silk'],
['了解', '了解.silk'],
['晚安', '晚安.silk'],
['辛苦了', '辛苦了.silk'],
['糟了', '糟了.silk'],
['干得漂亮', '干得漂亮.silk']
]
def AutoReply(message):
a = 0
for i in range(len(AutoReplyMessage)):
if message.find(AutoReplyMessage[i][0]) >= 0:
a = 1
return AutoReplyMessage[i][1]
for i in range(len(AutoReplyImage)):
if message.find(AutoReplyImage[i][0]) >= 0:
a = 1
return "./Menhera/" + AutoReplyImage[i][1]
if a == 0:
return ""
def AutoVoice(message):
a = 0
for i in range(len(AutoReplyVoice)):
if message == AutoReplyVoice[i][0]:
a = 1
return "./voice/" + AutoReplyVoice[i][1]
if a == 0:
return ""