forked from Muhamadadeel/Asta-Md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgfx.js
225 lines (225 loc) · 8.38 KB
/
gfx.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
const {
smd,
prefix,
Config
} = require("../lib");
const done = "✳️";
const rwait = "✳️";
let GfxFunc = async (_0xe512ac, {
Void: _0x50b799,
text: _0x3930d1,
smd: _0x1fed9f
}, _0x5ccef2 = true) => {
try {
_0x3930d1 += ": ser";
let _0x478253 = "Example : *" + (prefix + _0x1fed9f) + "* Asta";
let _0x12ae56 = "*Separate the text with ':' sign*\n*Example : " + (prefix + _0x1fed9f) + " Asta : Bot*";
let _0x36f282 = _0x3930d1.split(":")[0];
let _0x2d2a89 = _0x1fed9f.toLowerCase();
switch (_0x2d2a89) {
case "gfx1":
if (!_0x36f282) {
throw _0x478253;
}
let _0x3226bb = "https://api.caliph.biz.id/api/kaneki?nama=" + encodeURIComponent(_0x36f282) + "&apikey=caliphkey";
_0xe512ac.send(_0x3226bb, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx2":
if (!_0x3930d1) {
throw _0x12ae56;
}
if (!_0x3930d1.includes(":")) {
throw _0x12ae56;
}
let [_0x26a726, _0x1e255c] = _0x3930d1.split(":");
let _0xab3dba = "https://api.caliph.biz.id/api/girlneko?nama=" + encodeURIComponent(_0x26a726.trim()) + "&nama2=" + encodeURIComponent(_0x1e255c.trim()) + "&apikey=caliphkey";
_0xe512ac.send(_0xab3dba, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx3":
if (!_0x36f282) {
throw _0x478253;
}
let _0x2dba02 = "https://api.caliph.biz.id/api/rem?nama=" + encodeURIComponent(_0x36f282) + "&apikey=caliphkey";
_0xe512ac.send(_0x2dba02, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx4":
if (!_0x36f282) {
throw _0x478253;
}
let _0x2f4148 = "https://api.caliph.biz.id/api/textpro/matrix?text=" + encodeURIComponent(_0x36f282) + "&apikey=caliphkey";
_0xe512ac.send(_0x2f4148, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx5":
if (!_0x36f282) {
throw _0x478253;
}
const _0x211bd9 = "https://api.lolhuman.xyz/api/textprome/jokerlogo?apikey=" + lolkeysapi + "&text=" + encodeURIComponent(_0x36f282);
_0xe512ac.send(_0x211bd9, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx6":
if (!_0x3930d1) {
throw _0x12ae56;
}
if (!_0x3930d1.includes(":")) {
throw _0x12ae56;
}
let [_0x1df0dc, _0x4804be] = _0x3930d1.split`:`;
const _0x17a27c = "https://api.lolhuman.xyz/api/textprome2/lionlogo?apikey=" + lolkeysapi + "&text1=" + encodeURIComponent(_0x1df0dc) + "&text2=" + encodeURIComponent(_0x4804be);
_0xe512ac.send(_0x17a27c, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx7":
if (!_0x3930d1) {
throw _0x12ae56;
}
if (!_0x3930d1.includes(":")) {
throw _0x12ae56;
}
let [_0x9244eb, _0x2fa36f] = _0x3930d1.split(":");
let _0x4b3f59 = "https://api.lolhuman.xyz/api/photooxy2/battlefield4?apikey=" + lolkeysapi + "&text1=" + encodeURIComponent(_0x9244eb.trim()) + "&text2=" + encodeURIComponent(_0x2fa36f.trim());
_0xe512ac.send(_0x4b3f59, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx8":
if (!_0x36f282) {
throw _0x478253;
}
let _0x21a8b0 = "https://api.lolhuman.xyz/api/ephoto1/anonymhacker?apikey=" + lolkeysapi + "&text=" + encodeURIComponent(_0x36f282);
_0xe512ac.send(_0x21a8b0, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx9":
if (!_0x36f282) {
throw _0x478253;
}
let _0x4af196 = "https://api.lolhuman.xyz/api/ephoto1/avatarlolnew?apikey=" + lolkeysapi + "&text=" + encodeURIComponent(_0x36f282);
_0xe512ac.send(_0x4af196, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx10":
if (!_0x36f282) {
throw _0x478253;
}
let _0x4eb041 = "https://api.lolhuman.xyz/api/ephoto1/avatardota?apikey=" + lolkeysapi + "&text=" + encodeURIComponent(_0x36f282);
_0xe512ac.send(_0x4eb041, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx11":
if (!_0x3930d1) {
throw _0x12ae56;
}
if (!_0x3930d1.includes(":")) {
throw _0x12ae56;
}
let [_0x188286, _0x1db7a9] = _0x3930d1.split(":");
let _0x28debb = "https://api.lolhuman.xyz/api/ephoto2/codwarzone?apikey=" + lolkeysapi + "&text1=" + encodeURIComponent(_0x188286.trim()) + "&text2=" + encodeURIComponent(_0x1db7a9.trim());
_0xe512ac.send(_0x28debb, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx12":
if (!_0x36f282) {
throw _0x478253;
}
let _0x54a9c8 = "https://api.lolhuman.xyz/api/ephoto1/freefire?apikey=" + lolkeysapi + "&text=" + encodeURIComponent(_0x36f282);
_0xe512ac.send(_0x54a9c8, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx13":
if (!_0x3930d1.includes(":")) {
throw _0x12ae56;
}
let [_0x1988c3, _0x4814d9] = _0x3930d1.split(":");
let _0x4f7a88 = "https://api.caliph.biz.id/api/sadboy?nama=" + encodeURIComponent(_0x1988c3.trim()) + "&nama2=" + encodeURIComponent(_0x4814d9.trim()) + "&apikey=caliphkey";
_0xe512ac.send(_0x4f7a88, {
caption: Config.caption
}, "img", _0xe512ac);
break;
case "gfx14":
if (!_0x3930d1) {
throw _0x12ae56;
}
var [_0x4814f3, _0x32c6ba] = _0x3930d1.split(":");
let _0x22e137 = "https://api.caliph.biz.id/api/lolimaker?nama=" + encodeURIComponent(_0x4814f3.trim()) + "&nama2=" + encodeURIComponent(_0x32c6ba.trim()) + "&apikey=caliphkey";
_0xe512ac.send(_0x22e137, {
caption: Config.caption
}, "img", _0xe512ac);
break;
default:
break;
}
} catch (_0x6096ff) {
console.log(_0x6096ff);
if (_0x5ccef2) {
return _0xe512ac.send("" + _0x6096ff);
}
}
};
let gfxx = ["gfx1", "gfx2", "gfx3", "gfx4", "gfx5", "gfx6", "gfx7", "gfx8", "gfx9", "gfx10", "gfx11", "gfx12", "gfx13", "gfx14"];
let lolkeysapi = "GataDios";
for (let i = 0; i < gfxx.length; i++) {
smd({
cmdname: gfxx[i],
infocmd: "create a gfx logo for text",
type: "gfx"
}, async (_0x2a8925, _0x4d7fbd, {
smd: _0x1a74bb,
Void: _0x328365
}) => {
try {
GfxFunc(_0x2a8925, {
text: _0x4d7fbd,
Void: _0x328365,
smd: _0x1a74bb
});
} catch (_0x2de287) {
console.log(_0x2de287);
}
});
}
smd({
cmdname: "gfx",
infocmd: "create gfx logo for text",
type: "gfx"
}, async (_0x1f82ce, _0x2f534c, {
smd: _0x123e7d,
Void: _0x2c219b
}) => {
try {
let _0x2106bc = "*Separate the text with _:_ sign!*\n*Example : " + (prefix + _0x123e7d) + " Asta _:_ Bot*";
if (!_0x2f534c) {
let _0x4a015 = "┌───〈 *ɢꜰx ᴍᴇɴᴜ* 〉───◆\n│╭─────────────···▸\n┴│▸\n⬡│▸ " + gfxx.join(" \n⬡│▸ ") + "\n┬│▸\n│╰────────────···▸▸\n└───────────────···▸\n\n\t *USE: " + (prefix + _0x123e7d) + " Asta:Md*\n_To get All Results with single Cmd!_\n";
return await _0x1f82ce.sendUi(_0x1f82ce.chat, {
caption: _0x4a015
});
}
if (!_0x2f534c.includes(":")) {
return _0x1f82ce.send(_0x2106bc);
}
for (let _0x1a7d08 = 0; _0x1a7d08 < gfxx.length; _0x1a7d08++) {
GfxFunc(_0x1f82ce, {
text: _0x2f534c,
Void: _0x2c219b,
smd: "gfx" + (_0x1a7d08 + 1)
}, false);
}
} catch (_0x4c39a6) {
_0x1f82ce.error(_0x4c39a6 + "\n\nCommand: " + _0x123e7d, _0x4c39a6, false);
}
});