const {Command} = require('../../lib.js')

const axios = require('axios')
const {EmbedBuilder} = require('discord.js')
class kiss extends Command{
        constructor(client){
            super(client, {
                name: 'kiss',
                group:'image',
                memberName: 'kiss',
                description: 'Publishes an image of the theme: kiss.'

            })
        }
        async run(message, args){
            var cmd = 'kiss';
            var res = await axios.get('https://rra.ram.moe/i/r', {params: {"type": cmd}});
            var path = res.data.path.replace('/i/', '');
           
                   
            const embed = new EmbedBuilder()
            embed.setColor(0xb50000);
            embed.setAuthor({name:"Rem-chan", iconURL:"https://i.imgur.com/g6FSNhL.png",url:'https://rem.wordfights.com/addtodiscord'})
            embed.setTitle('Imagem:')
            embed.setImage(`https://cdn.ram.moe/${path}`);
            embed.setFooter({text:'Rem-chan em ', iconUrl:"https://i.imgur.com/g6FSNhL.png"})
            embed.setTimestamp();


            message.channel.send({embeds: [embed]});
        }
}module.exports = kiss;