forked from Muhamadadeel/Asta-Md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpubg.js
52 lines (52 loc) · 1.62 KB
/
pubg.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
let { smd, textToLogoGenerator, prefix } = require(lib_dir);
let pubg = {
type: "pubg",
info: "create pubg text logo.",
filename: __filename,
};
let singleText = async (message, match, { cmdName }) => {
try {
let logo = {
pubg1:
"tao-cover-game-pubg-anh-bia-game-playerunknown-s-battlegrounds-401",
pubg2: "tao-anh-bia-cover-facebook-game-pubg-407",
pubg3: "tao-logo-pubg-truc-tuyen-mien-phi-714",
pubg4: "tao-logo-mascot-pubg-online-sieu-ngau-716",
pubg5: "tao-logo-pubg-truc-tuyen-nhieu-mau-sac-717",
pubg6: "tao-logo-pubg-phong-cach-chibi-online-721",
};
if (!match) return message.reply(`*_Example : ${prefix + cmdName} Astro_*`);
return await textToLogoGenerator(
message,
logo[cmdName],
match,
"asta",
"1"
);
} catch (e) {
return await message.error(`${e}\n\ncmdName: ${cmdName}`, e);
}
};
//----------------------------------------------------------------------------------
for (cmd of ["pubg1", "pubg2", "pubg3", "pubg4", "pubg5", "pubg6"]) {
smd({ cmdname: cmd, ...pubg }, singleText);
}
smd({ cmdname: "pubg7", ...pubg }, async (message, match, { cmdName }) => {
try {
let text1 = match ? match.split(";")[0] : "";
let text2 = match ? match.split(";")[1] : "";
if (!text2 || !text1)
return await message.reply(
`*_Example : ${prefix + cmdName} text1;text2_*`
);
return await textToLogoGenerator(
message,
"tao-logo-pubg-truc-tuyen-phong-cach-den-trang-715",
text1,
text2,
"1"
);
} catch (e) {
return await message.error(`${e}\n\ncmdName: ${cmdName}`, e);
}
});