-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfun-tops.js
58 lines (54 loc) · 1.81 KB
/
fun-tops.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
import util from 'util';
import path from 'path';
const user = (a) => '@' + a.split('@')[0];
function handler(m, {groupMetadata, command, conn, participants}) {
const ps = groupMetadata.participants.map((v) => v.id);
const a = ps.getRandom();
const b = ps.getRandom();
const c = ps.getRandom();
const d = ps.getRandom();
const e = ps.getRandom();
const f = ps.getRandom();
const g = ps.getRandom();
const h = ps.getRandom();
const i = ps.getRandom();
const j = ps.getRandom();
if (command == 'topgays') {
const vn = './media/gay2.mp3';
const top = `*🌈TOP 10 GAYS/LESBIANAS DEL GRUPO🌈*
*_1.- ${user(a)}_*
*_2.- ${user(b)}_*
*_3.- ${user(c)}_*
*_4.- ${user(d)}_*
*_5.- ${user(e)}_*
*_6.- ${user(f)}_*
*_7.- ${user(g)}_*
*_8.- ${user(h)}_*
*_9.- ${user(i)}_*
*_10.- ${user(j)}_*`;
m.reply(top, null, {mentions: [a, b, c, d, e, f, g, h, i, j]});
conn.sendMessage(m.chat, {audio: {url: vn}, fileName: 'error.mp3', mimetype: 'audio/mpeg', ptt: true}, {quoted: m});
// conn.sendFile(m.chat, vn, 'error.mp3', null, m, true, { type: 'audioMessage', ptt: true })
}
if (command == 'topotakus') {
const vn = './media/otaku.mp3';
const top = `*🌸 TOP 10 OTAKUS DEL GRUPO 🌸*
*_1.- ${user(a)}_*
*_2.- ${user(b)}_*
*_3.- ${user(c)}_*
*_4.- ${user(d)}_*
*_5.- ${user(e)}_*
*_6.- ${user(f)}_*
*_7.- ${user(g)}_*
*_8.- ${user(h)}_*
*_9.- ${user(i)}_*
*_10.- ${user(j)}_*`;
m.reply(top, null, {mentions: [a, b, c, d, e, f, g, h, i, j]});
conn.sendMessage(m.chat, {audio: {url: vn}, fileName: 'error.mp3', mimetype: 'audio/mpeg', ptt: true}, {quoted: m});
// conn.sendFile(m.chat, vn, 'otaku.mp3', null, m, true, { type: 'audioMessage', ptt: true })
}
}
handler.help = handler.command = ['topgays', 'topotakus'];
handler.tags = ['games'];
handler.group = true;
export default handler;