@dy_lan19/discord.gifs
Version:
Un simple modulo NPM que tiene varias funcionalidades, como dar gifs al usuario, devolver imagenes de animales, etc
199 lines (151 loc) • 4.53 kB
JavaScript
const axios = require('axios')
//SFW
const Slap = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/slap')
return res.data.url;
}
const Kiss = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/kiss')
return res.data.url;
}
const Pat = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/pat')
return res.data.url;
}
const Hug = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/hug')
return res.data.url;
}
const Neko = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/neko')
return res.data.url;
}
const Waifu = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/waifu')
return res.data.url;
}
//NSFW
const Hentai = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/Random_hentai_gif')
return res.data.url;
}
const Pussy = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/pussy')
return res.data.url;
}
const Boobs = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/boobs')
return res.data.url;
}
const Tits = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/tits')
return res.data.url;
}
const Cum = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/cum')
return res.data.url;
}
const Anal = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/anal')
return res.data.url;
}
const Bj = async () => {
const res = await axios.get('https://nekos.life/api/v2/img/bj')
return res.data.url;
}
const Creampie = async () => {
const res = await axios.get(`https://hmtai.herokuapp.com/v2/creampie`)
return res.data.url;
}
const Yuri = async () => {
const res = await axios.get(`https://hmtai.herokuapp.com/v2/yuri`)
return res.data.url;
}
const Ahegao = async () => {
const res = await axios.get(`https://hmtai.herokuapp.com/v2/ahegao`)
return res.data.url;
}
const Blowjob = async () => {
const res = await axios.get(`https://hmtai.herokuapp.com/v2/blowjob`)
return res.data.url;
}
const Boobjob = async () => {
const res = await axios.get(`https://hmtai.herokuapp.com/v2/boobjob`)
return res.data.url;
}
//Otros
const Cat = async () => {
const res = await axios.get('http://aws.random.cat/meow')
return res.data.url;
}
const Dog = async () => {
const res = await axios.get('https://dog.ceo/api/breeds/image/random')
return res.data.message;
}
const Fox = async () => {
const res = await axios.get('https://randomfox.ca/floof')
return res.data.image;
}
const Bird = async () => {
const res = await axios.get('https://some-random-api.ml/img/birb')
return res.data.link;
}
const Panda = async () => {
const res = await axios.get('https://some-random-api.ml/img/panda')
return res.data.link;
}
//GD
const Gduser = async (user) => {
if(!user) return 'Error: Ingresa un nombre de usuario!';
const res = await axios.get(`https://gdbrowser.com/api/profile/${user}`)
if(res.data == '-1') return 'Error: El nombre de usuario ingresado no existe o hay un problema con los servidores.';
return res.data;
}
const Gdlevel = async (args) => {
if(!args) return 'Error: Ingresa el nombre de un nivel!';
const res = await axios.get(`https://gdbrowser.com/api/search/${args}`)
if(res.data == '-1') return 'Error: El nivel ingresado no existe o hay un problema con los servidores.';
return res.data[0];
}
const Meme = async () => {
const res = await axios.get(`https://meme-api.herokuapp.com/gimme`)
return res.data.url;
}
const Poem = async () => {
const res = await axios.get(`https://www.poemist.com/api/v1/randompoems`)
return res.data[0];
}
const Ascii = async (text) => {
const res = await axios.get(`https://artii.herokuapp.com/make?text=${text}`)
return res.data;
}
module.exports = {
Slap,
Kiss,
Pat,
Hug,
Neko,
Waifu,
Hentai,
Pussy,
Anal,
Boobs,
Tits,
Cum,
Creampie,
Bj,
Yuri,
Ahegao,
Blowjob,
Boobjob,
Cat,
Fox,
Dog,
Bird,
Panda,
Gduser,
Gdlevel,
Meme,
Poem,
Ascii
}