-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpony.js
executable file
·83 lines (78 loc) · 1.48 KB
/
pony.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
var ponyMoji = [
'applejack',
'applejackheart',
'applejackrun',
'blaze',
'bigmac',
'cadance',
'cloudkicker',
'drwhooves',
'fluttershy',
'fluttershyfly',
'iepony',
'pinkiepie',
'ponycop',
'princesscadance',
'princesscelestia',
'princessluna',
'rainbow-cat',
'rainbowdash',
'rainbowdash-fly',
'rainbowdash-swag',
'rainbowdash2',
'rainbowdash3',
'rainbowdash4',
'rainbowdash5',
'rainbowdash6',
'rarity',
'recursion',
'sassaflash',
'spitfire',
'sunnydaze',
'sunnydazeskates',
'swanky_hank',
'twilight-sparkle',
'shining_armour',
'clap_ponies',
'clap_applejack',
'clap_bigmacintosh',
'clap_binky',
'clap_blaze',
'clap_cloudkicker',
'clap_drwhooves',
'clap_fluttershy',
'clap_pinkiepie',
'clap_princesscadance',
'clap_rainbowdash',
'clap_rarity',
'clap_sassaflash',
'clap_shiningarmour',
'clap_spitfire',
'clap_swankyhank',
'clap_sunnydaze',
'clap_twilightsparkle',
'clap_twilightarmour'
];
var ponies = 162;
function getRandomPonyEmoji() {
return ponyMoji[Math.floor(ponyMoji.length * Math.random())];
}
exports.getRandomPonyEmojis = () => {
var ponies = [];
var count = Math.floor(10 * Math.random());
for (var i = 0; i < count; i++) {
ponies.push(getRandomPonyEmoji());
}
return ponies;
}
function getRandomPony() {
var index = Math.floor(ponies * Math.random()) + 1;
return 'http://ponyfac.es/' + index + '/full';
}
exports.getPonyBotObject = () => {
return {
'icon_emoji': ':unicorn_face:',
'username': 'PonyBot',
'text': getRandomPony()
};
}