ayla-npm
Version:
Um npm com várias apis! embutidas!| https://www.npmjs.com/package/ayla-npm
105 lines (85 loc) • 2.89 kB
Plain Text
//https://api.alexflipnote.dev/filter/magik?image=
code
https://api.qrserver.com/v1/create-qr-code/?data=a
//https://useless-api.vierofernando.repl.co/captcha?text=
DOG
//https://random.dog/woof.json`);
BABY
// https://useless-api.vierofernando.repl.co/baby?image='+user.avatarURL()
CAS
//https://api.alexflipnote.dev/captcha?text=
MC
// https://mc-heads.net/body/${player}/500
//https://www.github.com/dragonfire535/xiao/tree/master
function qrcode(a) {
if (a.message === null || a.message === undefined || a.message === '' || a.message === ' ') {
console.log('Error: undefined message!')
} else {
let msg = a.message.join('+')
let qr = encodeURI(`https://api.qrserver.com/v1/create-qr-code/?data=${msg}`)
return qr
}
}
function mcbody(a) {
if (a.message === null || a.message === undefined) {
console.log('Error: undefined skin!')
} else {
let msg = a.message.join('+')
let mc = encodeURI(`https://mc-heads.net/body/${msg}}/500`)
return mc
}
}
function clyde(a) {
if (a.message === null || a.message === undefined || a.message === '' || a.message === ' ') {
console.log('Error: undefined message!')
} else {
let msg = a.message.join('+')
let msgclyde = encodeURI(`https://ctk-api.herokuapp.com/clyde/${msg}`)
return msgclyde
}
}
function google(a) {
if (a.message === null || a.message === undefined || a.message === '' || a.message === ' ') {
console.log('Error: undefined message!')
} else {
let msg = a.message.join('+')
let google = encodeURI(`https://www.google.com/search?q=${msg}`)
return google
}
}
function youtube(a) {
if (a.message === null || a.message === undefined || a.message === '' || a.message === ' ') {
console.log('Error: undefined message!')
} else {
let msg = a.message.join('+')
let yt = encodeURI(`https://m.youtube.com/results?search_query=${msg}`)
return yt
}
}
function captcha(a) {
if (a.message === null || a.message === undefined || a.message === '' || a.message === ' ') {
console.log('Error: undefined message!')
} else {
let msg = a.message.join('+')
let ct = encodeURI(`https://api.alexflipnote.dev/captcha?text=${msg}`)
return ct
}
}
function captcha2(a) {
if (a.message === null || a.message === undefined || a.message === '' || a.message === ' ') {
console.log('Error: undefined message!')
} else {
let msg = a.message.join('+')
let ct2 = encodeURI(`https://useless-api.vierofernando.repl.co/captcha?text=${msg}`)
return ct2
}
}
module.exports = {
clyde,
qrcode,
google,
youtube,
captcha,
captcha2,
mcbody
}