1.0.6 • Published 4 years ago

random-anime v1.0.6

Weekly downloads
1,138
License
MIT
Repository
github
Last release
4 years ago

Installation

$ npm install random-anime

Usage

const randomanime = require('random-anime')
const anime = randomanime.anime()
const nsfw = randomanime.nsfw()

console.log(anime) //https://anime.jpg
console.log(nsfw)  //https://nsfw.jpg

Discord Bot

const randomanime = require("random-anime");
const Discord = require("discord.js");
const client = new Discord.Client();

client.on("message", async message => {
  /* Plain Text */
  if (message.content === "plain") {
    const anime = randomanime.anime();
    message.channel.send(anime);
  }
  /* Embed Image (D.JS Version 12) */
  if (message.content === "embed") {
    const anime = randomanime.anime();
    const embed = new Discord.MessageEmbed().setImage(anime);
    message.channel.send(embed);
  }
});

client.login("BOT_TOKEN");

Options

OptionsDescriptionUsage
animeRandom anime images.randomanime.anime()
nsfwRandom NSFW anime images.randomanime.nsfw()

License

MIT © Amista

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago