text: const { Command, SwitchbladeEmbed } = require('../../')
  const fetch = require('node-fetch')
  
  module.exports = class Dog extends Command {
    constructor (client) {
      super({
        name: 'dog',
        aliases: ['doggo', 'dogpics', 'randomdog'],
        category: 'general'
      }, client)
    }
  
    async run ({ t, author, channel }) {
      const embed = new SwitchbladeEmbed(author)
      channel.startTyping()
      const { message } = await fetch('https://dog.ceo/api/breeds/image/random').then(res => res.json())
      embed.setImage(message)
        .setDescription(`${t('commands:dog.hereIsYourDog')} <:DoggoF:445701839564963840>`)
      channel.send(embed).then(() => channel.stopTyping())
    }
  }
  