-
Notifications
You must be signed in to change notification settings - Fork 0
/
meme.js
3569 lines (3558 loc) · 65.4 KB
/
meme.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
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 plugin from '../../lib/plugins/plugin.js'
import fetch, { FormData, File } from 'node-fetch'
import fs from 'fs'
import path from 'node:path'
import _ from 'lodash'
if (!global.segment) {
global.segment = (await import('oicq')).segment
}
const baseUrl = 'https://memes.ikechan8370.com'
/**
* 机器人发表情是否引用回复用户
* @type {boolean}
*/
const reply = true
/**
* 是否强制使用#触发命令
*/
const forceSharp = false
/**
* 主人保护,撅主人时会被反撅
* @type {boolean}
*/
const masterProtectDo = true
export class memes extends plugin {
constructor () {
let option = {
/** 功能名称 */
name: '表情包',
/** 功能描述 */
dsc: '表情包制作',
/** https://oicqjs.github.io/oicq/#events */
event: 'message',
/** 优先级,数字越小等级越高 */
priority: 5000,
rule: [
{
/** 命令正则匹配 */
reg: '^(#)?(meme(s)?|表情包)列表$',
/** 执行方法 */
fnc: 'memesList'
},
{
/** 命令正则匹配 */
reg: '^#?随机(meme(s)?|表情包)',
/** 执行方法 */
fnc: 'randomMemes'
},
{
/** 命令正则匹配 */
reg: '^#?(meme(s)?|表情包)帮助',
/** 执行方法 */
fnc: 'memesHelp'
},
{
/** 命令正则匹配 */
reg: '^#?(meme(s)?|表情包)搜索',
/** 执行方法 */
fnc: 'memesSearch'
}
]
}
Object.keys(keyMap).forEach(key => {
let reg = forceSharp ? `^#${key}` : `^#?${key}`
option.rule.push({
/** 命令正则匹配 */
reg,
/** 执行方法 */
fnc: 'memes'
})
})
super(option)
}
async memesHelp (e) {
e.reply('【memes列表】:查看支持的memes列表\n【{表情名称}】:memes列表中的表情名称,根据提供的文字或图片制作表情包\n【随机meme】:随机制作一些表情包\n【meme搜索+关键词】:搜索表情包关键词\n【{表情名称}+详情】:查看该表情所支持的参数')
}
async memesSearch (e) {
let search = e.msg.replace(/^#?(meme(s)?|表情包)搜索/, '').trim()
if (!search) {
await e.reply('你要搜什么?')
return true
}
let hits = Object.keys(keyMap).filter(k => k.indexOf(search) > -1)
let result = '搜索结果'
if (hits.length > 0) {
for (let i = 0; i < hits.length; i++) {
result += `\n${i + 1}. ${hits[i]}`
}
} else {
result += '\n无'
}
await e.reply(result, e.isGroup)
}
async memesList (e) {
mkdirs('data/memes')
let resultFileLoc = 'data/memes/render_list1.jpg'
if (fs.existsSync(resultFileLoc)) {
await e.reply(segment.image(fs.createReadStream(resultFileLoc)))
return true
}
let response = await fetch(baseUrl + '/memes/render_list', {
method: 'POST'
})
const resultBlob = await response.blob()
const resultArrayBuffer = await resultBlob.arrayBuffer()
const resultBuffer = Buffer.from(resultArrayBuffer)
await fs.writeFileSync(resultFileLoc, resultBuffer)
await e.reply(segment.image(fs.createReadStream(resultFileLoc)))
setTimeout(async () => {
await fs.unlinkSync(resultFileLoc)
}, 3600)
return true
}
async randomMemes (e) {
let keys = Object.keys(infos).filter(key => infos[key].params.min_images === 1 && infos[key].params.min_texts === 0)
let index = _.random(0, keys.length - 1, false)
console.log(keys, index)
e.msg = infos[keys[index]].keywords[0]
return await this.memes(e)
}
/**
* #memes
* @param e oicq传递的事件参数e
*/
async memes (e) {
// console.log(e)
let msg = e.msg.replace('#', '')
let keys = Object.keys(keyMap).filter(k => msg.startsWith(k))
let target = keys[0]
if (target === '玩' && msg.startsWith('玩游戏')) {
target = '玩游戏'
}
if (target === '滚' && msg.startsWith('滚屏')) {
target = '滚屏'
}
let targetCode = keyMap[target]
// let target = e.msg.replace(/^#?meme(s)?/, '')
let text1 = _.trimStart(e.msg, '#').replace(target, '')
if (text1.trim() === '详情' || text1.trim() === '帮助') {
await e.reply(detail(targetCode))
return false
}
let [text, args = ''] = text1.split('#')
let userInfos
let formData = new FormData()
let info = infos[targetCode]
let fileLoc
if (info.params.max_images > 0) {
// 可以有图,来从回复、发送和头像找图
let imgUrls = []
if (e.source) {
// 优先从回复找图
let reply
if (e.isGroup) {
reply = (await e.group.getChatHistory(e.source.seq, 1)).pop()?.message
} else {
reply = (await e.friend.getChatHistory(e.source.time, 1)).pop()?.message
}
if (reply) {
for (let val of reply) {
if (val.type === 'image') {
console.log(val)
imgUrls.push(val.url)
}
}
}
} else if (e.img) {
// 一起发的图
imgUrls.push(...e.img)
} else if (e.message.filter(m => m.type === 'at').length > 0) {
// 艾特的用户的头像
let ats = e.message.filter(m => m.type === 'at')
imgUrls = ats.map(at => at.qq).map(qq => `https://q1.qlogo.cn/g?b=qq&s=0&nk=${qq}`)
}
if (!imgUrls || imgUrls.length === 0) {
// 如果都没有,用发送者的头像
imgUrls = [`https://q1.qlogo.cn/g?b=qq&s=0&nk=${e.sender.user_id}`]
}
if (imgUrls.length < info.params.min_images && imgUrls.indexOf(`https://q1.qlogo.cn/g?b=qq&s=0&nk=${e.sender.user_id}`) === -1) {
// 如果数量不够,补上发送者头像,且放到最前面
let me = [`https://q1.qlogo.cn/g?b=qq&s=0&nk=${e.sender.user_id}`]
let done = false
if (targetCode === 'do' && masterProtectDo) {
let masters = await getMasterQQ()
if (imgUrls[0].startsWith('https://q1.qlogo.cn')) {
let split = imgUrls[0].split('=')
let targetQQ = split[split.length - 1]
if (masters.map(q => q + '').indexOf(targetQQ) > -1) {
imgUrls = imgUrls.concat(me)
done = true
}
}
}
if (!done) {
imgUrls = me.concat(imgUrls)
}
// imgUrls.push(`https://q1.qlogo.cn/g?b=qq&s=0&nk=${e.msg.sender.user_id}`)
}
imgUrls = imgUrls.slice(0, Math.min(info.params.max_images, imgUrls.length))
for (let i = 0; i < imgUrls.length; i++) {
let imgUrl = imgUrls[i]
const imageResponse = await fetch(imgUrl)
const fileType = imageResponse.headers.get('Content-Type').split('/')[1]
fileLoc = `data/memes/original/${Date.now()}.${fileType}`
mkdirs('data/memes/original')
const blob = await imageResponse.blob()
const arrayBuffer = await blob.arrayBuffer()
const buffer = Buffer.from(arrayBuffer)
await fs.writeFileSync(fileLoc, buffer)
formData.append('images', new File([buffer], `avatar_${i}.jpg`, { type: 'image/jpeg' }))
}
}
if (text && info.params.max_texts === 0) {
return false
}
if (!text && info.params.min_texts > 0) {
if (e.message.filter(m => m.type === 'at').length > 0) {
text = _.trim(e.message.filter(m => m.type === 'at')[0].text, '@')
} else {
text = e.sender.card || e.sender.nickname
}
}
let texts = text.split('/', info.params.max_texts)
if (texts.length < info.params.min_texts) {
await e.reply(`字不够!要至少${info.params.min_texts}个用/隔开!`, true)
return true
}
texts.forEach(t => {
formData.append('texts', t)
})
if (info.params.max_texts > 0 && formData.getAll('texts').length === 0) {
if (formData.getAll('texts').length < info.params.max_texts) {
if (e.message.filter(m => m.type === 'at').length > 0) {
formData.append('texts', _.trim(e.message.filter(m => m.type === 'at')[0].text, '@'))
} else {
formData.append('texts', e.sender.card || e.sender.nickname)
}
}
}
if (e.message.filter(m => m.type === 'at').length > 0) {
userInfos = e.message.filter(m => m.type === 'at')
let mm = await e.group.getMemberMap()
userInfos.forEach(ui => {
let user = mm.get(ui.qq)
ui.gender = user.sex
ui.text = user.card || user.nickname
})
}
if (!userInfos) {
userInfos = [{ text: e.sender.card || e.sender.nickname, gender: e.sender.sex }]
}
args = handleArgs(targetCode, args, userInfos)
if (args) {
formData.set('args', args)
}
console.log('input', { target, targetCode, images: formData.getAll('images'), texts: formData.getAll('texts'), args: formData.getAll('args') })
let response = await fetch(baseUrl + '/memes/' + targetCode + '/', {
method: 'POST',
body: formData
// headers: {
// 'Content-Type': 'multipart/form-data'
// }
})
// console.log(response.status)
if (response.status > 299) {
let error = await response.text()
console.error(error)
await e.reply(error, true)
return true
}
mkdirs('data/memes/result')
let resultFileLoc = `data/memes/result/${Date.now()}.jpg`
const resultBlob = await response.blob()
const resultArrayBuffer = await resultBlob.arrayBuffer()
const resultBuffer = Buffer.from(resultArrayBuffer)
await fs.writeFileSync(resultFileLoc, resultBuffer)
await e.reply(segment.image(fs.createReadStream(resultFileLoc)), reply)
fileLoc && await fs.unlinkSync(fileLoc)
await fs.unlinkSync(resultFileLoc)
}
}
function handleArgs (key, args, userInfos) {
if (!args) {
args = ''
}
let argsObj = {}
switch (key) {
case 'look_flat': {
argsObj = { ratio: parseInt(args || '2') }
break
}
case 'crawl': {
argsObj = { number: parseInt(args) ? parseInt(args) : _.random(1, 92, false) }
break
}
case 'symmetric': {
let directionMap = {
左: 'left',
右: 'right',
上: 'top',
下: 'bottom'
}
argsObj = { direction: directionMap[args.trim()] || 'left' }
break
}
case 'petpet':
case 'jiji_king':
case 'kirby_hammer': {
argsObj = { circle: args.startsWith('圆') }
break
}
case 'my_friend': {
if (!args) {
args = _.trim(userInfos[0].text, '@')
}
argsObj = { name: args }
break
}
case 'always': {
let modeMap = {
'': 'normal',
循环: 'loop',
套娃: 'circle'
}
argsObj = { mode: modeMap[args] || 'normal' }
break
}
case 'gun':
case 'bubble_tea': {
let directionMap = {
左: 'left',
右: 'right',
两边: 'both'
}
argsObj = { position: directionMap[args.trim()] || 'right' }
break
}
}
argsObj.user_infos = userInfos.map(u => {
return {
name: _.trim(u.text, '@'),
gender: u.gender
}
})
return JSON.stringify(argsObj)
}
const keyMap = {
问问: 'ask',
咖波撞: 'capoo_strike',
咖波头槌: 'capoo_strike',
击剑: 'fencing',
'🤺': 'fencing',
吸: 'suck',
嗦: 'suck',
许愿失败: 'wish_fail',
捶爆: 'thump_wildly',
爆捶: 'thump_wildly',
yt: 'youtube',
youtube: 'youtube',
万花筒: 'kaleidoscope',
万花镜: 'kaleidoscope',
手枪: 'gun',
恐龙: 'dinosaur',
小恐龙: 'dinosaur',
卡比锤: 'kirby_hammer',
卡比重锤: 'kirby_hammer',
出警: 'police',
警察: 'police1',
加班: 'overtime',
二次元入口: 'acg_entrance',
一起: 'together',
流星: 'meteor',
看图标: 'look_this_icon',
砸: 'smash',
注意力涣散: 'distracted',
可达鸭: 'psyduck',
google: 'google',
鲁迅说: 'luxun_say',
鲁迅说过: 'luxun_say',
快跑: 'run',
我永远喜欢: 'always_like',
安全感: 'safe_sense',
高血压: 'blood_pressure',
胡桃啃: 'hutao_bite',
需要: 'need',
你可能需要: 'need',
喜报: 'good_news',
一直: 'always',
像样的亲亲: 'decent_kiss',
挠头: 'scratch_head',
防诱拐: 'anti_kidnap',
拍: 'pat',
亚文化取名机: 'name_generator',
亚名: 'name_generator',
恍惚: 'trance',
继续干活: 'back_to_work',
打工人: 'back_to_work',
贴: 'rub',
贴贴: 'rub',
蹭: 'rub',
蹭蹭: 'rub',
等价无穷小: 'lim_x_0',
胡桃平板: 'walnut_pad',
升天: 'ascension',
遇到困难请拨打: 'call_110',
急急国王: 'jiji_king',
捂脸: 'cover_face',
入典: 'dianzhongdian',
典中典: 'dianzhongdian',
黑白草图: 'dianzhongdian',
刮刮乐: 'scratchcard',
小画家: 'painter',
国旗: 'china_flag',
丢: 'throw',
扔: 'throw',
狂爱: 'fanatic',
狂粉: 'fanatic',
对称: 'symmetric',
坐牢: 'imprison',
离婚协议: 'divorce',
离婚申请: 'divorce',
膜: 'worship',
膜拜: 'worship',
不喊我: 'not_call_me',
波纹: 'wave',
听音乐: 'listen_music',
看扁: 'look_flat',
震惊: 'shock',
可莉吃: 'klee_eat',
整点薯条: 'find_chips',
远离: 'keep_away',
字符画: 'charpic',
奶茶: 'bubble_tea',
记仇: 'hold_grudge',
我老婆: 'my_wife',
这是我老婆: 'my_wife',
看书: 'read_book',
抱紧: 'hold_tight',
吃: 'eat',
阿尼亚喜欢: 'anya_suki',
锤: 'hammer',
咖波画: 'capoo_draw',
坐得住: 'sit_still',
坐的住: 'sit_still',
交个朋友: 'make_friend',
咖波蹭: 'capoo_rub',
咖波贴: 'capoo_rub',
舰长: 'captain',
xx起来了: 'wakeup',
口号: 'slogan',
这像画吗: 'paint',
采访: 'interview',
打穿: 'hit_screen',
打穿屏幕: 'hit_screen',
啃: 'bite',
猫羽雫举牌: 'nekoha_holdsign',
猫猫举牌: 'nekoha_holdsign',
复读: 'repeat',
别说了: 'shutup',
douyin: 'douyin',
舔: 'prpr',
舔屏: 'prpr',
prpr: 'prpr',
吴京: 'wujing',
鼓掌: 'applaud',
顶: 'play',
玩: 'play',
打印: 'printing',
踢球: 'kick_ball',
打拳: 'punch',
一巴掌: 'slap',
滚: 'roll',
上瘾: 'addiction',
毒瘾发作: 'addiction',
群青: 'cyan',
诺基亚: 'nokia',
有内鬼: 'nokia',
想什么: 'think_what',
啾啾: 'jiujiu',
土豆: 'potato',
捣: 'pound',
撕: 'rip',
举牌: 'raise_sign',
咖波说: 'capoo_say',
拍头: 'beat_head',
完美: 'perfect',
爬: 'crawl',
低语: 'murmur',
布洛妮娅举牌: 'bronya_holdsign',
大鸭鸭举牌: 'bronya_holdsign',
转: 'turn',
'5000兆': '5000choyen',
兑换券: 'coupon',
加载中: 'loading',
不文明: 'incivilization',
我朋友说: 'my_friend',
一样: 'alike',
紧贴: 'tightly',
紧紧贴着: 'tightly',
亲: 'kiss',
亲亲: 'kiss',
'为什么@我': 'why_at_me',
结婚申请: 'marriage',
结婚登记: 'marriage',
追列车: 'chase_train',
追火车: 'chase_train',
木鱼: 'wooden_fish',
凯露指: 'karyl_point',
诈尸: 'rise_dead',
秽土转生: 'rise_dead',
唐可可举牌: 'tankuku_raisesign',
万能表情: 'universal',
空白表情: 'universal',
摸: 'petpet',
摸摸: 'petpet',
摸头: 'petpet',
rua: 'petpet',
罗永浩说: 'luoyonghao_say',
精神支柱: 'support',
推锅: 'pass_the_buck',
甩锅: 'pass_the_buck',
永远爱你: 'love_you',
垃圾: 'garbage',
垃圾桶: 'garbage',
小天使: 'little_angel',
墙纸: 'wallpaper',
敲: 'knock',
悲报: 'bad_news',
胡桃放大: 'walnut_zoom',
哈哈镜: 'funny_mirror',
玩游戏: 'play_game',
捶: 'thump',
无响应: 'no_response',
踩: 'step_on',
ph: 'pornhub',
pornhub: 'pornhub',
迷惑: 'confuse',
滚屏: 'scroll',
波奇手稿: 'bocchi_draft',
怒撕: 'rip_angrily',
抛: 'throw_gif',
掷: 'throw_gif',
风车转: 'windmill_turn',
不要靠近: 'dont_touch',
讲课: 'teach',
敲黑板: 'teach',
王境泽: 'wangjingze',
为所欲为: 'weisuoyuwei',
馋身子: 'chanshenzi',
切格瓦拉: 'qiegewala',
谁反对: 'shuifandui',
曾小贤: 'zengxiaoxian',
压力大爷: 'yalidaye',
你好骚啊: 'nihaosaoa',
食屎啦你: 'shishilani',
五年怎么过的: 'wunian',
关注: 'follow',
低情商xx高情商xx: 'high_EQ',
搓: 'twist',
抱大腿: 'hug_leg',
偷学: 'learn',
看看你的: 'can_can_need',
撅: 'do',
狠狠地撅: 'do',
禁止: 'forbid',
禁: 'forbid',
抓: 'grab',
合成大干员: 'operator_generator',
双手: 'stretch',
伸展: 'stretch'
}
const detail = code => {
let d = infos[code]
let keywords = d.keywords.join('、')
let ins = `【代码】${d.key}\n【名称】${keywords}\n【最大图片数量】${d.params.max_images}\n【最小图片数量】${d.params.min_images}\n【最大文本数量】${d.params.max_texts}\n【最小文本数量】${d.params.min_texts}\n【默认文本】${d.params.default_texts.join('/')}\n`
if (d.params.args.length > 0) {
let supportArgs = ''
switch (code) {
case 'look_flat': {
supportArgs = '看扁率,数字.如#3'
break
}
case 'crawl': {
supportArgs = '爬的图片编号,1-92。如#33'
break
}
case 'symmetric': {
supportArgs = '方向,上下左右。如#下'
break
}
case 'petpet':
case 'jiji_king':
case 'kirby_hammer': {
supportArgs = '是否圆形头像,输入圆即可。如#圆'
break
}
case 'always': {
supportArgs = '一直图像的渲染模式,循环、套娃、默认。不填参数即默认。如一直#循环'
break
}
case 'gun':
case 'bubble_tea': {
supportArgs = '方向,左、右、两边。如#两边'
break
}
}
ins += `【支持参数】${supportArgs}`
}
return ins
}
const infos = {
ask: {
key: 'ask',
keywords: [
'问问'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 1,
default_texts: [],
args: []
}
},
capoo_strike: {
key: 'capoo_strike',
keywords: [
'咖波撞',
'咖波头槌'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
fencing: {
key: 'fencing',
keywords: [
'击剑',
'🤺'
],
patterns: [],
params: {
min_images: 2,
max_images: 2,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
suck: {
key: 'suck',
keywords: [
'吸',
'嗦'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
wish_fail: {
key: 'wish_fail',
keywords: [
'许愿失败'
],
patterns: [],
params: {
min_images: 0,
max_images: 0,
min_texts: 1,
max_texts: 1,
default_texts: [
'我要对象'
],
args: []
}
},
thump_wildly: {
key: 'thump_wildly',
keywords: [
'捶爆',
'爆捶'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
youtube: {
key: 'youtube',
keywords: [
'yt',
'youtube'
],
patterns: [],
params: {
min_images: 0,
max_images: 0,
min_texts: 2,
max_texts: 2,
default_texts: [
'Porn',
'Hub'
],
args: []
}
},
kaleidoscope: {
key: 'kaleidoscope',
keywords: [
'万花筒',
'万花镜'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: [
{
name: 'circle',
type: 'boolean',
description: '是否将图片变为圆形',
default: false,
enum: null
}
]
}
},
gun: {
key: 'gun',
keywords: [
'手枪'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: [
{
name: 'position',
type: 'string',
description: '枪的位置',
default: 'left',
enum: [
'left',
'right',
'both'
]
}
]
}
},
dinosaur: {
key: 'dinosaur',
keywords: [
'恐龙',
'小恐龙'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
kirby_hammer: {
key: 'kirby_hammer',
keywords: [
'卡比锤',
'卡比重锤'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: [
{
name: 'circle',
type: 'boolean',
description: '是否将图片变为圆形',
default: false,
enum: null
}
]
}
},
police: {
key: 'police',
keywords: [
'出警'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
police1: {
key: 'police1',
keywords: [
'警察'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
overtime: {
key: 'overtime',
keywords: [
'加班'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
acg_entrance: {
key: 'acg_entrance',
keywords: [
'二次元入口'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 1,
default_texts: [
'走,跟我去二次元吧'
],
args: []
}
},
together: {
key: 'together',
keywords: [
'一起'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 1,
default_texts: [],
args: []
}
},
meteor: {
key: 'meteor',
keywords: [
'流星'
],
patterns: [],
params: {
min_images: 0,
max_images: 0,
min_texts: 1,
max_texts: 1,
default_texts: [
'我要对象'
],
args: []
}
},
look_this_icon: {
key: 'look_this_icon',
keywords: [
'看图标'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 1,
default_texts: [
'朋友\n先看看这个图标再说话'
],
args: []
}
},
smash: {
key: 'smash',
keywords: [
'砸'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
distracted: {
key: 'distracted',
keywords: [
'注意力涣散'
],
patterns: [],
params: {
min_images: 1,
max_images: 1,
min_texts: 0,
max_texts: 0,
default_texts: [],
args: []
}
},
psyduck: {
key: 'psyduck',
keywords: [
'可达鸭'
],
patterns: [],
params: {
min_images: 0,
max_images: 0,
min_texts: 2,
max_texts: 2,
default_texts: [
'来份',
'涩图'
],
args: []
}
},
google: {
key: 'google',
keywords: [
'google'
],
patterns: [],
params: {
min_images: 0,
max_images: 0,
min_texts: 1,
max_texts: 1,
default_texts: [
'Google'
],
args: []
}