-
Notifications
You must be signed in to change notification settings - Fork 23
/
utils.js
50 lines (47 loc) · 1.06 KB
/
utils.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
module.exports.getBotByFooter = footer => {
switch (footer.text.toLowerCase()) {
case 'splashforce':
return 'splashforce';
break;
case 'ycopp ultimate adidas bot':
return 'ycopp';
break;
case 'latchkeyio adidas bot':
return 'latchkey';
break;
case 'sole aio adidas mode':
return 'soleaio';
break;
case 'adisplash by backdoor, all rights reserved.':
return 'adisplash';
break;
case 'phantom':
return 'phantom';
break;
case 'balkobot':
return 'balko';
break;
case 'gen5 adidas':
return 'gen5';
break;
default:
if (footer.text.startsWith('nomercy')) {
return 'nomercy';
break
}else if(footer.text.toLowerCase().startsWith('kodaiaio')){
return 'kodai'
}
else if(footer.text.toLowerCase().startsWith('adisplash')){
return 'adisplash'
break
}
}
return undefined;
}
const THUMBNAIL_URL = 'https://i.imgur.com/Gy1AX6A.jpg'
module.exports.createFooter = cartNum => {
return `Cart: # ${cartNum} • Made by Jalfrazi`;
}
module.exports.getThumbnail = () => {
return THUMBNAIL_URL;
}