SHARE
TWEET

Untitled

MechSlayer Nov 14th, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require("discord.js");
  2. const API = require('animeflv-scrapper')
  3.  
  4. exports.run = async (client, message, args) => {
  5.  
  6.   const search = `${args}`;
  7.  
  8.  
  9.   API.searchAnime(search).then(data => {
  10.   console.log(data)
  11.     data = data[0]
  12.       API.getAnimeInfo(data.title, data.animeId).then(data2 => {
  13.         var malEmbed = new Discord.RichEmbed()
  14.         .setAuthor(`${args}`.split(',').join(' '))
  15.         .setImage(data.image)
  16.         .setColor('#36393F')
  17.         .addField(' Titulo', data.title, true)
  18.         .addField(' id', data2.animeId, true)
  19.         .addField(':tv: Capitulos', data2.episodes.length, true)
  20.         .addField('Tipo', data2.type, true)
  21.         .addField('Estado', data2.status, true)
  22.         .addField('Generos', data2.genre, true)
  23.         .addField(':star: Clasificación', data.rating, true)
  24.         .addField(':clock: Transmitido', data2.year, true)
  25.         .addField(':star: Puntuación', data2.votes, true)
  26.         .addField(':one: Estadísticas de puntuación', data.scoreStats, true)
  27.         .addField('Sinopsis', data.description, true)
  28.         .addField(':link: Link', data.link)
  29.         .setFooter(client.user.username, client.user.displayAvatarURL)
  30.  
  31.  
  32.         message.channel.send(malEmbed);
  33.        
  34.         message.channel.send(malEmbed);
  35.         console.log(data);
  36.       })
  37.     })
  38.  
  39. exports.help = {
  40.   name: "anime",
  41.   aliases: []
  42. }
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top