-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbongo.js
113 lines (113 loc) · 3.54 KB
/
bongo.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
const {
zokou
} = require("../framework/zokou");
const axios = require("axios");
const Genius = require("genius-lyrics");
const Client = new Genius.Client("jKTbbU-6X2B9yWWl-KOm7Mh3_Z6hQsgE4mmvwV3P3Qe7oNa9-hsrLxQV5l5FiAZO");
zokou({
'nomCom': 'poll',
'reaction': '💠',
'categorie': "General"
}, async (_0x30c4fc, _0x12f9f4, _0x257571) => {
const {
repondre: _0x394782,
arg: _0x3aacc5,
ms: _0x50fea5
} = _0x257571;
const _0x24dbc4 = _0x3aacc5.join(" ");
let [_0x48d7c3, _0x3c6856] = _0x24dbc4.split('/');
if (_0x24dbc4.split('/') < 0x2) {
return _0x394782("Incorrect format.\nExample: poll what is 1+1/2, 3, 4");
}
let _0x28e247 = [];
for (let _0x44e06d of _0x3c6856.split(',')) {
_0x28e247.push(_0x44e06d);
}
await _0x12f9f4.sendMessage(_0x30c4fc, {
'poll': {
'name': _0x48d7c3,
'values': _0x28e247
}
});
});
zokou({
'nomCom': 'fact',
'reaction': '👌',
'categorie': 'User'
}, async (_0x3c85fa, _0xe0dd81, _0x20339c) => {
const {
repondre: _0x12e23a,
arg: _0xec0687,
ms: _0x5d5368
} = _0x20339c;
const _0x5754a8 = await fetch("https://nekos.life/api/v2/fact");
const _0x21e127 = await _0x5754a8.json();
_0x12e23a(" *BMW MD FACT MESSAGE* \n*💠* " + _0x21e127.fact + "\n\n\n\n\n*©Ibrahim Adams*\n\n╔═════◇\n║◇ *BMW MD*\n╚════════════════════> ");
});
zokou({
'nomCom': "quote",
'reaction': '🗿',
'categorie': 'User'
}, async (_0x139e97, _0xb6d444, _0x53dc51) => {
const {
repondre: _0x3bef2d,
arg: _0x135e01,
ms: _0x4a891b
} = _0x53dc51;
const _0x2784cf = await fetch('https://favqs.com/api/qotd');
const _0x1f25fb = await _0x2784cf.json();
const _0x2b238b = "\nBMW MD QUITE MESSAGE \n◇ _" + _0x1f25fb.quote.body + "_\n\n\n◇ *AUTHOR:* " + _0x1f25fb.quote.author + "\n\n\n\n\n◇ *©Ibrahim Adams**\n\n\n╔═════◇\n║◇ *BMW MD*\n╚════════════════════> ";
_0x3bef2d(_0x2b238b);
});
zokou({
'nomCom': 'define',
'reaction': '😁',
'categorie': "Search"
}, async (_0x2d6773, _0x1778cf, _0x5bcf7e) => {
const {
repondre: _0x3c6e3b,
arg: _0x3997ea,
ms: _0x10a9bb
} = _0x5bcf7e;
if (!_0x3997ea || _0x3997ea.length === 0x0) {
return _0x3c6e3b("provide a term");
}
const _0x243eb3 = _0x3997ea.join(" ");
try {
let {
data: _0x31830d
} = await axios.get("http://api.urbandictionary.com/v0/define?term=" + _0x243eb3);
var _0x259634 = "\n Word: " + _0x243eb3 + "\n Definition: " + _0x31830d.list[0x0].definition.replace(/\[/g, '').replace(/\]/g, '') + "\n Example: " + _0x31830d.list[0x0].example.replace(/\[/g, '').replace(/\]/g, '');
return _0x3c6e3b(_0x259634);
} catch {
return _0x3c6e3b("No result for " + _0x243eb3);
}
});
zokou({
'nomCom': "lyrics",
'reaction': '🗞',
'categorie': "Search"
}, async (_0x16b585, _0x24921b, _0x5047e1) => {
const {
repondre: _0x323d88,
arg: _0x47ee56,
ms: _0x26dbd3
} = _0x5047e1;
try {
if (!_0x47ee56 || _0x47ee56.length === 0x0) {
return _0x323d88("please provide me the song name");
}
const _0x2d6993 = _0x47ee56.join(" ");
const _0x19a972 = await Client.songs.search(_0x2d6993);
const _0x349a1c = _0x19a972[0x0];
const _0x3e8204 = await _0x349a1c.lyrics();
await _0x24921b.sendMessage(_0x16b585, {
'text': _0x3e8204
}, {
'quoted': _0x26dbd3
});
} catch (_0xe736b5) {
reply("I did not find any lyrics for " + text + ". Try searching a different song.");
console.log(_0xe736b5);
}
});