|
| 1 | +const bent = require('bent') |
| 2 | +const baseURI = 'https://server-api-rey.herokuapp.com' |
| 3 | + |
| 4 | +module.exports.blackpink = function blackpink(text1) { |
| 5 | + return new Promise((resolve, reject) => { |
| 6 | + bent('buffer')(baseURI+'/api/textprome/blackpink?text=' + encodeURIComponent(text1) + '&apikey=apirey') |
| 7 | + .then(resolve) |
| 8 | + .catch(reject) |
| 9 | + }) |
| 10 | +} |
| 11 | + |
| 12 | +module.exports.sky = function sky(text1) { |
| 13 | + return new Promise((resolve, reject) => { |
| 14 | + bent('buffer')(baseURI+'/api/textprome/sky?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 15 | + .then(resolve) |
| 16 | + .catch(reject) |
| 17 | + }) |
| 18 | +} |
| 19 | + |
| 20 | +module.exports.toxic = function toxic(text1) { |
| 21 | + return new Promise((resolve, reject) => { |
| 22 | + bent('buffer')(baseURI+'/api/textprome/toxic?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 23 | + .then(resolve) |
| 24 | + .catch(reject) |
| 25 | + }) |
| 26 | +} |
| 27 | + |
| 28 | +module.exports.thunder = function thunder(text1) { |
| 29 | + return new Promise((resolve, reject) => { |
| 30 | + bent('buffer')(baseURI+'/api/textprome/thunder?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 31 | + .then(resolve) |
| 32 | + .catch(reject) |
| 33 | + }) |
| 34 | +} |
| 35 | + |
| 36 | +module.exports.horror = function realcloud(text1) { |
| 37 | + return new Promise((resolve, reject) => { |
| 38 | + bent('buffer')(baseURI+'/api/textprome/horror?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 39 | + .then(resolve) |
| 40 | + .catch(reject) |
| 41 | + }) |
| 42 | +} |
| 43 | + |
| 44 | +module.exports.halloween = function halloween(text1) { |
| 45 | + return new Promise((resolve, reject) => { |
| 46 | + bent('buffer')(baseURI+'/api/textprome/halloween?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 47 | + .then(resolve) |
| 48 | + .catch(reject) |
| 49 | + }) |
| 50 | +} |
| 51 | + |
| 52 | +module.exports.harrypotter = function harrypotter(text1) { |
| 53 | + return new Promise((resolve, reject) => { |
| 54 | + bent('buffer')(baseURI+'/api/textprome/harrypotter?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 55 | + .then(resolve) |
| 56 | + .catch(reject) |
| 57 | + }) |
| 58 | +} |
| 59 | + |
| 60 | +module.exports.holograpich3d = function holograpich3d(text1) { |
| 61 | + return new Promise((resolve, reject) => { |
| 62 | + bent('buffer')(baseURI+'/api/textprome/hologrspich-3d?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 63 | + .then(resolve) |
| 64 | + .catch(reject) |
| 65 | + }) |
| 66 | +} |
| 67 | + |
| 68 | +module.exports.metaldark = function metaldark(text1) { |
| 69 | + return new Promise((resolve, reject) => { |
| 70 | + bent('buffer')(baseURI+'/api/textprome/metal-dark?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 71 | + .then(resolve) |
| 72 | + .catch(reject) |
| 73 | + }) |
| 74 | +} |
| 75 | + |
| 76 | +module.exports.matrix = function matrix(text1) { |
| 77 | + return new Promise((resolve, reject) => { |
| 78 | + bent('buffer')(baseURI+'/api/textprome/matrix?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 79 | + .then(resolve) |
| 80 | + .catch(reject) |
| 81 | + }) |
| 82 | +} |
| 83 | + |
| 84 | +module.exports.minion = function minion(text1) { |
| 85 | + return new Promise((resolve, reject) => { |
| 86 | + bent('buffer')(baseURI+'/api/textprome/minion?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 87 | + .then(resolve) |
| 88 | + .catch(reject) |
| 89 | + }) |
| 90 | +} |
| 91 | + |
| 92 | +module.exports.blood = function blood(text1) { |
| 93 | + return new Promise((resolve, reject) => { |
| 94 | + bent('buffer')(baseURI+'/api/textprome/blood?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 95 | + .then(resolve) |
| 96 | + .catch(reject) |
| 97 | + }) |
| 98 | +} |
| 99 | + |
| 100 | +module.exports.firework = function firework(text11, text12) { |
| 101 | + return new Promise((resolve, reject) => { |
| 102 | + bent('buffer')(baseURI+'/api/textprome/skeleton?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 103 | + .then(resolve) |
| 104 | + .catch(reject) |
| 105 | + }) |
| 106 | +} |
| 107 | + |
| 108 | +module.exports.wicker = function wicker(text1) { |
| 109 | + return new Promise((resolve, reject) => { |
| 110 | + bent('buffer')(baseURI+'/api/textprome/wicker?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 111 | + .then(resolve) |
| 112 | + .catch(reject) |
| 113 | + }) |
| 114 | +} |
| 115 | + |
| 116 | +module.exports.luxury = function luxury(text1) { |
| 117 | + return new Promise((resolve, reject) => { |
| 118 | + bent('buffer')(baseURI+'/api/textprome/luxury?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 119 | + .then(resolve) |
| 120 | + .catch(reject) |
| 121 | + }) |
| 122 | +} |
| 123 | + |
| 124 | +module.exports.gradient = function gradient(text11, text12) { |
| 125 | + return new Promise((resolve, reject) => { |
| 126 | + bent('buffer')(baseURI+'/api/textprome/gradient?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 127 | + .then(resolve) |
| 128 | + .catch(reject) |
| 129 | + }) |
| 130 | +} |
| 131 | + |
| 132 | +module.exports.neonlight = function neonlight(text1) { |
| 133 | + return new Promise((resolve, reject) => { |
| 134 | + bent('buffer')(baseURI+'/api/textprome/neonlight?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 135 | + .then(resolve) |
| 136 | + .catch(reject) |
| 137 | + }) |
| 138 | +} |
| 139 | + |
| 140 | +module.exports.neonnew = function neonnew(text1) { |
| 141 | + return new Promise((resolve, reject) => { |
| 142 | + bent('buffer')(baseURI+'/api/textprome/neonnew?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 143 | + .then(resolve) |
| 144 | + .catch(reject) |
| 145 | + }) |
| 146 | +} |
| 147 | + |
| 148 | +module.exports.christmas = function christmas(text1) { |
| 149 | + return new Promise((resolve, reject) => { |
| 150 | + bent('buffer')(baseURI+'/api/textprome/christmas?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 151 | + .then(resolve) |
| 152 | + .catch(reject) |
| 153 | + }) |
| 154 | +} |
| 155 | + |
| 156 | +module.exports.dropwater = function dropwater(text1) { |
| 157 | + return new Promise((resolve, reject) => { |
| 158 | + bent('buffer')(baseURI+'/api/textprome/dropwater?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 159 | + .then(resolve) |
| 160 | + .catch(reject) |
| 161 | + }) |
| 162 | +} |
| 163 | + |
| 164 | +module.exports.xmas = function xmas(text1) { |
| 165 | + return new Promise((resolve, reject) => { |
| 166 | + bent('buffer')(baseURI+'/api/textprome/xmas?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 167 | + .then(resolve) |
| 168 | + .catch(reject) |
| 169 | + }) |
| 170 | +} |
| 171 | + |
| 172 | +module.exports.lava = function lava(text1) { |
| 173 | + return new Promise((resolve, reject) => { |
| 174 | + bent('buffer')(baseURI+'/api/textprome/lava?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 175 | + .then(resolve) |
| 176 | + .catch(reject) |
| 177 | + }) |
| 178 | +} |
| 179 | + |
| 180 | +module.exports.gloxycarbon = function gloxycarbon(text11, text12) { |
| 181 | + return new Promise((resolve, reject) => { |
| 182 | + bent('buffer')(baseURI+'/api/textprome/gloxy-carbon?text1=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 183 | + .then(resolve) |
| 184 | + .catch(reject) |
| 185 | + }) |
| 186 | +} |
| 187 | + |
| 188 | +module.exports.deluxecarbon = function deluxecarbon(text1) { |
| 189 | + return new Promise((resolve, reject) => { |
| 190 | + bent('buffer')(baseURI+'/api/textprome/deluxe-carbon?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 191 | + .then(resolve) |
| 192 | + .catch(reject) |
| 193 | + }) |
| 194 | +} |
| 195 | + |
| 196 | +module.exports.glue = function glue(text1) { |
| 197 | + return new Promise((resolve, reject) => { |
| 198 | + bent('buffer')(baseURI+'/api/textprome/glue?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 199 | + .then(resolve) |
| 200 | + .catch(reject) |
| 201 | + }) |
| 202 | +} |
| 203 | + |
| 204 | +module.exports.joker = function joker(text1) { |
| 205 | + return new Promise((resolve, reject) => { |
| 206 | + bent('buffer')(baseURI+'/api/textprome/joker?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 207 | + .then(resolve) |
| 208 | + .catch(reject) |
| 209 | + }) |
| 210 | +} |
| 211 | + |
| 212 | +module.exports.sandsummer = function sandsummer(text1) { |
| 213 | + return new Promise((resolve, reject) => { |
| 214 | + bent('buffer')(baseURI+'/api/textprome/sandsummer?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 215 | + .then(resolve) |
| 216 | + .catch(reject) |
| 217 | + }) |
| 218 | +} |
| 219 | + |
| 220 | +module.exports.sandengraved = function sandengraved(text11, text12) { |
| 221 | + return new Promise((resolve, reject) => { |
| 222 | + bent('buffer')(baseURI+'/api/textprome/gloxy-carbon?text1=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 223 | + .then(resolve) |
| 224 | + .catch(reject) |
| 225 | + }) |
| 226 | +} |
| 227 | + |
| 228 | +module.exports.deluxesilver = function deluxecsilver(text1) { |
| 229 | + return new Promise((resolve, reject) => { |
| 230 | + bent('buffer')(baseURI+'/api/textprome/deluxe-siverl?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 231 | + .then(resolve) |
| 232 | + .catch(reject) |
| 233 | + }) |
| 234 | +} |
| 235 | + |
| 236 | +module.exports.gloxyblue = function gloxyblue(text1) { |
| 237 | + return new Promise((resolve, reject) => { |
| 238 | + bent('buffer')(baseURI+'/api/textprome/gloxy-blue?text=' + encodeURIComponent(text1) + '&apikey=404Api') |
| 239 | + .then(resolve) |
| 240 | + .catch(reject) |
| 241 | + }) |
| 242 | +} |
| 243 | + |
| 244 | +///////////////////////// 2 TEXT ////////////////////////////// |
| 245 | + |
| 246 | +module.exports.pornhub = function pornhub(text1, text2) { |
| 247 | + return new Promise((resolve, reject) => { |
| 248 | + bent('buffer')(baseURI+'/api/textprome/pornhub?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 249 | + .then(resolve) |
| 250 | + .catch(reject) |
| 251 | + }) |
| 252 | +} |
| 253 | + |
| 254 | +module.exports.vintage = function vintage(text1, text2) { |
| 255 | + return new Promise((resolve, reject) => { |
| 256 | + bent('buffer')(baseURI+'/api/textprome/vintage?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 257 | + .then(resolve) |
| 258 | + .catch(reject) |
| 259 | + }) |
| 260 | +} |
| 261 | + |
| 262 | +module.exports.avengers = function avengers(text1, text2) { |
| 263 | + return new Promise((resolve, reject) => { |
| 264 | + bent('buffer')(baseURI+'/api/textprome/avengers?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 265 | + .then(resolve) |
| 266 | + .catch(reject) |
| 267 | + }) |
| 268 | +} |
| 269 | + |
| 270 | +module.exports.marvel = function marvel(text1, text2) { |
| 271 | + return new Promise((resolve, reject) => { |
| 272 | + bent('buffer')(baseURI+'/api/textprome/marvel?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 273 | + .then(resolve) |
| 274 | + .catch(reject) |
| 275 | + }) |
| 276 | +} |
| 277 | + |
| 278 | +module.exports.ninja = function ninja(text1, text2) { |
| 279 | + return new Promise((resolve, reject) => { |
| 280 | + bent('buffer')(baseURI+'/api/textprome/ninja?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 281 | + .then(resolve) |
| 282 | + .catch(reject) |
| 283 | + }) |
| 284 | +} |
| 285 | + |
| 286 | +module.exports.wolf = function wolf(text1, text2) { |
| 287 | + return new Promise((resolve, reject) => { |
| 288 | + bent('buffer')(baseURI+'/api/textprome/wolf?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 289 | + .then(resolve) |
| 290 | + .catch(reject) |
| 291 | + }) |
| 292 | +} |
| 293 | + |
| 294 | +module.exports.girlgraffiti = function girlgraffiti(text1, text2) { |
| 295 | + return new Promise((resolve, reject) => { |
| 296 | + bent('buffer')(baseURI+'/api/textprome/girl-grafiti?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 297 | + .then(resolve) |
| 298 | + .catch(reject) |
| 299 | + }) |
| 300 | +} |
| 301 | + |
| 302 | +module.exports.wolf2 = function wolf2(text1, text2) { |
| 303 | + return new Promise((resolve, reject) => { |
| 304 | + bent('buffer')(baseURI+'/api/textprome/wolf2?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 305 | + .then(resolve) |
| 306 | + .catch(reject) |
| 307 | + }) |
| 308 | +} |
| 309 | + |
| 310 | +module.exports.marvel2 = function marvel2(text1, text2) { |
| 311 | + return new Promise((resolve, reject) => { |
| 312 | + bent('buffer')(baseURI+'/api/textprome/marvel2?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 313 | + .then(resolve) |
| 314 | + .catch(reject) |
| 315 | + }) |
| 316 | +} |
| 317 | + |
| 318 | +module.exports.space3d = function space3d(text1, text2) { |
| 319 | + return new Promise((resolve, reject) => { |
| 320 | + bent('buffer')(baseURI+'/api/textprome/space3d?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 321 | + .then(resolve) |
| 322 | + .catch(reject) |
| 323 | + }) |
| 324 | +} |
| 325 | + |
| 326 | +module.exports.stone = function stone(text1, text2) { |
| 327 | + return new Promise((resolve, reject) => { |
| 328 | + bent('buffer')(baseURI+'/api/textprome/ston?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 329 | + .then(resolve) |
| 330 | + .catch(reject) |
| 331 | + }) |
| 332 | +} |
| 333 | + |
| 334 | +module.exports.lion = function lion(text1, text2) { |
| 335 | + return new Promise((resolve, reject) => { |
| 336 | + bent('buffer')(baseURI+'/api/textprome/lion?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 337 | + .then(resolve) |
| 338 | + .catch(reject) |
| 339 | + }) |
| 340 | +} |
| 341 | + |
| 342 | +module.exports.steel = function steel(text1, text2) { |
| 343 | + return new Promise((resolve, reject) => { |
| 344 | + bent('buffer')(baseURI+'/api/textprome/steel?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 345 | + .then(resolve) |
| 346 | + .catch(reject) |
| 347 | + }) |
| 348 | +} |
| 349 | + |
| 350 | +module.exports.grafiti = function grafiti(text1, text2) { |
| 351 | + return new Promise((resolve, reject) => { |
| 352 | + bent('buffer')(baseURI+'/api/textprome/grafiti?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api') |
| 353 | + .then(resolve) |
| 354 | + .catch(reject) |
| 355 | + }) |
| 356 | +} |
0 commit comments