-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev-3474006766.js
214 lines (211 loc) · 12.5 KB
/
dev-3474006766.js
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
//获取消息中的全部数字
function getAllNumber(str) {
var ns = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
var out = ""
for (var i = 0; i < str.length; i++) {
var e = str[i]
if (ns.indexOf(e) >= 0) {
out = out + e
}
}
if (out.length > 0) {
return Number(out)
} else {
return -1
}
}
//获取消息中的全部数字
function getAllNumberOrSelfId(str) {
var ns = getAllNumber(str)
if (ns == -1) return context.getSender().getId(); else return ns
}
if (context.getType() == "friend") {
if (context.getSender().getId() == context.getBot().getId()) {
if (msg.startsWith("/repeat")) {
context.send(msg.substring(8))
}
}
}
//https://q2.qlogo.cn/headimg_dl?dst_uin=3474006766&spec=640
if (context.getType() === "group") {
var u0 = null
if (msg == "菜单") {
var fb = context.forwardBuilder()
fb.add(context.getBot().getId(), "AI", context.newPlainText("管理: [念] [开] [关] [加词] [查词]"))
fb.add(context.getBot().getId(), "AI",
context.newPlainText("表情包:" +
"\n[舔] [嘲笑]" +
"\n[添乱] [你怎么] [看扁] [想]" +
"\n[好看] [撕] [激动] [恐龙]" +
"\n[加框] [高质量] [举] [单身狗证]" +
"\n[羡慕] [狗] [妻子] [干嘛]" +
"\n[画家] [朋友说(文字)] [要亲亲]" +
"\n[鲁迅说(文字)] [赞] [永远爱你]" +
"\n[老实点] [踢人] [捅] [加载]" +
"\n[屏幕] [爬] [牵] [冰淇淋]" +
"\n[素描] [求婚] [感动哭了]" +
"\n[想看] [悲报(文字)] [喜报(文字)]" +
"\n[需要] [甘雨爱心] [听音乐]"))
fb.add(context.getBot().getId(), "AI",
context.newPlainText("动:" +
"\n[垃圾] [等等我] [纳西妲咬] [砸]" +
"\n[墓碑] [画] [磕电脑] [拳击]" +
"\n[可达鸭] [击剑] [亲亲] [摸]" +
"\n[摇啊摇] [吃] [鸡腿舞] [招财猫]" +
"\n[一起笑] [打年糕] [贴贴] [看这个]" +
"\n[咬] [顶球] [拍瓜] [抓] [膜拜]" +
"\n[捣] [吃掉] [掀墙纸] [可莉吃]"))
context.send(fb.build())
} else if (msg.startsWith("捅")) {
u0 = "http://kloping.top/api/image/tong?q1=" + context.getSender().getId() + "&q2=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("想")) {
u0 = "https://api.andeer.top/API/img_miss.php?bqq=" + context.getSender().getId() + "&cqq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("亲亲")) {
u0 = "https://api.andeer.top/API/img_kiss.php?bqq=" + context.getSender().getId() + "&cqq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("击剑")) {
u0 = "https://api.andeer.top/API/gif_beat_j.php?bqq=" + context.getSender().getId() + "&cqq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("可达鸭")) {
u0 = "https://api.andeer.top/API/gif_duck.php?bqq=" + context.getSender().getId() + "&cqq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("牵")) {
u0 = "https://api.pearktrue.cn/api/qqbqb/qian/qian.php?qq1=" + context.getSender().getId() + "&qq2=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("妻子")) {
u0 = "https://api.andeer.top/API/img_wife.php?bqq=" + context.getSender().getId() + "&cqq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("素描")) {
u0 = "https://api.xingzhige.com/API/xian/?url=https%3A%2F%2Fq2.qlogo.cn%2Fheadimg_dl%3Fdst_uin%3D" + getAllNumberOrSelfId(msg) + "%26spec%3D640"
} else if (msg.startsWith("悲报")) {
u0 = "https://api.andeer.top/API/img_beibao.php?data=" + encodeURI(msg.substring(2).trim())
} else if (msg.startsWith("喜报")) {
u0 = "https://api.andeer.top/API/img_xibao.php?data=" + encodeURI(msg.substring(2).trim())
} else if (msg.startsWith("鲁迅说")) {
u0 = "https://api.andeer.top/API/img_luxun.php?text=" + encodeURI(msg.substring(2).trim())
} else if (msg.startsWith("朋友说")) {
var n1 = getAllNumberOrSelfId(msg);
u0 = "https://api.andeer.top/API/img_say.php?qq=" + n1 + "&text=" + encodeURI(msg.substring(3).trim().replace("<at:" + n1 + ">", ""))
} //以上特殊 多
else if (msg.startsWith("舔")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=104&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("急急急")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=58&qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("嘲笑")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=134&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("永远爱你")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=74&qq=" + getAllNumberOrSelfId(msg);
}else if (msg.startsWith("看扁")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=72&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("添乱")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=2&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("你怎么")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=4&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("垃圾")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=43&qq=" + getAllNumberOrSelfId(msg);
}else if (msg.startsWith("等等我")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=25&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("纳西妲咬")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=18&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("砸")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=49&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("好看")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=106&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("墓碑")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=112&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("撕")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=111&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("加载")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=71&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("画")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=19&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("磕电脑")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=23&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("激动")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=15&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("恐龙")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=31&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("加框")) {
u0 = "https://api.wxsszs.cn/api/tksc.php?qq=" + getAllNumberOrSelfId(msg);
}else if (msg.startsWith("高质量")) {
u0 = "https://api.andeer.top/API/gzl.php?qq=" + getAllNumberOrSelfId(msg);
}else if (msg.startsWith("举")) {
u0 = "https://api.andeer.top/API/ju.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("单身狗证")) {
u0 = "https://api.andeer.top/API/dsg.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("羡慕")) {
u0 = "https://api.andeer.top/API/xianmu.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("抱")) {
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=52&qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("狗")) {
u0 = "https://api.andeer.top/API/dog.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("拳击")) {
u0 = "https://api.andeer.top/API/gif_beat.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("干嘛")) {
u0 = "https://api.andeer.top/API/img_whyat.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("摇啊摇")) {
u0 = "http://kloping.top/api/image/yao2yao?qid=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("画家")) {
u0 = "https://api.andeer.top/API/img_painter.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("要亲亲")) {
u0 = "https://api.andeer.top/API/img_kiss_1.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("赞")) {
u0 = "https://api.andeer.top/API/img_good.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("老实点")) {
u0 = "https://api.andeer.top/API/img_lsd.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("踢人")) {
u0 = "https://api.andeer.top/API/img_tr.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("摸")) {
u0 = "https://api.andeer.top/API/gif_mo.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("屏幕")) {
u0 = "https://api.andeer.top/API/img_screen.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("可莉吃")) {
u0 = "https://api.andeer.top/API/gif_klee_eat.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("掀墙纸")) {
u0 = "https://api.andeer.top/API/gif_wallpaper.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("听音乐")) {
u0 = "https://api.andeer.top/API/img_listen_music.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("需要")) {
u0 = "https://api.andeer.top/API/img_need.php?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("吃")) {
u0 = "https://api.xingzhige.com/API/chi/?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("爬")) {
u0 = "https://api.xingzhige.com/API/pa/?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("冰淇淋")) {
u0 = "https://api.xingzhige.com/API/bql/?qq=" + getAllNumberOrSelfId(msg);
} else if (msg.startsWith("鸡腿舞")) {
u0 = "https://api.xingzhige.com/API/DanceChickenLeg/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("招财猫")) {
u0 = "https://api.xingzhige.com/API/FortuneCat/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("一起笑")) {
u0 = "https://api.xingzhige.com/API/LaughTogether/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("打年糕")) {
u0 = "https://api.xingzhige.com/API/pound/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("贴贴")) {
u0 = "https://api.xingzhige.com/API/baororo/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("看这个")) {
u0 = "https://api.xingzhige.com/API/Lookatthis/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("咬")) {
u0 = "https://api.xingzhige.com/API/bite/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("顶球")) {
u0 = "https://api.xingzhige.com/API/dingqiu/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("抓")) {
u0 = "https://api.xingzhige.com/API/grab/?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("求婚")) {
u0 = "https://api.lolimi.cn/API/face_propose/?QQ=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("感动哭了")) {
u0 = "https://api.lolimi.cn/API/face_touch/?QQ=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("膜拜")) {
u0 = "https://api.lolimi.cn/API/face_worship/?QQ=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("想看")) {
u0 = "https://api.lolimi.cn/API/face_thsee/?QQ=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("捣")) {
u0 = "https://api.lolimi.cn/API/face_pound/?QQ=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("吃掉")) {
u0 = "https://api.lolimi.cn/API/face_bite/?QQ=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("甘雨爱心")) {
u0 = "https://api.andeer.top/API/img_love.php?qq=" + getAllNumberOrSelfId(msg)
} else if (msg.startsWith("/表情")) {
var ns = msg.split(" ")
var aa = msg;
if (ns.length > 2) aa = ns[2]
else aa = ns[0]
u0 = "https://api.lolimi.cn/API/preview/api.php?&type=" + ns[1] + "&qq=" + getAllNumberOrSelfId(aa);
}
if (u0 != null) context.send(context.uploadImage(u0))
}