const request = require('superagent')
const { Command } = require('sylphy')

class Catgirl extends Command {
  constructor (...args) {
    super(...args, {
      name: 'catgirl',
      description: 'Fetches a random catgirl',
      options: { botPerms: ['embedLinks'], localeKey: 'images' },
      group: 'anime'
    })
  }

  async handle ({ msg, args }, responder) {
    try {
      if (msg.channel.nsfw === false) return responder.error('{{wrongChannel}}')
      await responder.typing()
      const url = (await request.get('https://catgirls.brussell98.tk/api/random').set('User-Agent', 'haru v2.1.0')).body.url
      return responder
      .embed({
        color: this.colours.green,
        description: '📷  ' + responder.t('{{link}}', { image: `**[${responder.t('{{catgirl}}')}](${url})**` }),
        image: { url }
      })
      .send()
    } catch (err) {
      this.logger.error('Error encountered while querying catgirls')
      this.logger.error(err)
      return responder.error()
    }
  }
}

module.exports = Catgirl

@@ -46,16 +46,23 @@
  Command
+, utils
  %7D = req
@@ -673,26 +673,32 @@
 or: 
-this.c
+utils.getC
 olour
-s.
+('
 green
+')
 ,%0A  

Fix catgirl embed