text: const { default: axios } = require('axios');
  const Discord = require('discord.js');
  const Command = require('../../base/Command');
  
  class Advice extends Command {
    constructor(bot) {
      super(bot, {
        name: 'advice',
        description: 'Gives advice',
        usage: '$advice',
        aliases: ['adv'],
        cooldown: 1000,
      });
    }
  
    async run(message) {
      const omgScoots = this.bot.emojis.cache.find(emoji => emoji.name === 'OMGScoots');
      const { data } = await axios.get('https://api.adviceslip.com/advice');
      const adviceEmbed = new Discord.MessageEmbed()
        .setColor(3447003)
        .addField(
          `${message.author.username} here is your advice ${omgScoots}`,
          data.slip.advice,
        );
      this.respond({ embeds: [adviceEmbed] });
    }
  }
  
  module.exports = Advice;
  