Facebook
From RidenLive, 3 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 221
  1. const Discord = require("discord.js");  // BU KOMUT RİDENLİVE TARAFINDAN EDİTLENMİŞTİR.
  2. const express = require('express');      // BU APİ ByMayFe_0 AİTTİR
  3. const app = express();
  4.  
  5. module.exports.run = async (bot, message, args) => {
  6.  
  7.  
  8.  
  9.  var resim = require("request");
  10.   resim.get("https://mayfeapi.glitch.me/api/elraen", (err, res, body) => {
  11.   const cevaplar = JSON.parse(body);
  12.             var resimcik = cevaplar[Math.floor(Math.random() * cevaplar.length)];
  13.            
  14.    
  15.    
  16.     let gifembed = new Discord.RichEmbed()
  17.         .setTitle("Fotoğrafın! ❤")
  18.         .setColor("RED")
  19.         .setFooter(`Elraenn Fotoğraf!`, message.author.avatarURL)
  20.         .setFooter(`RidenLive ByMayFe_0 Tarafından Oluşturulmuştur.`, message.author.avatarURL)
  21.         .setImage(resimcik);
  22.     message.channel.send(gifembed)
  23.  
  24.   })
  25.  
  26.  
  27. }
  28.  
  29.  
  30.  
  31. exports.conf = {
  32.   enabled: true,
  33.   guildOnly: false,
  34.   aliases: ['elraenn','elraen'],
  35.   permLevel: 0
  36. };
  37.  
  38. exports.help = {
  39.   name: 'elraenn',
  40.   description: 'Rastgele Elraenn fotoğrafları atar.',
  41.   usage: 'elraenn'
  42. };
  43.  
  44. // BU KOD RİDENLİVE`A ve ByMayFe_0 AİTTİR. İSTEKLERİNİZİ ☪RɪᴅᴇɴLɪᴠᴇ☪#9822  ve  ByMayFe_0 ~ ƈα#2956 DM OLARAK YAZIN !!