       allowDM: true
     }, (msg, args, d)=>
       if d.danbooruDate
-        return m.reply 'Rate limit excedeed. Wait a few seconds.' if (new Date() - d.danbooruDate) < 10000
+        return msg.reply 'Rate limit excedeed. Wait a few seconds.' if (new Date() - d.danbooruDate) < 10000
       d.danbooruDate = new Date()
       Waifu.filter({ user: msg.author.id }).run()
       .then (results)=>

      aliases: ['d']
    }, (msg, tags, d)=>
      if d.danbooruDate
        return m.reply 'Rate limit excedeed. Wait a few seconds.' if (new Date() - d.danbooruDate) < 10000
      d.danbooruDate = new Date()
      tags = 'rating:safe ' + tags if not d.data.allowNSFW
      qs = {

      aliases: ['safe']
    }, (msg, tags, d)=>
      if d.danbooruDate
        return msg.reply 'Rate limit excedeed. Wait a few seconds.' if (new Date() - d.danbooruDate) < 10000
      d.danbooruDate = new Date()
      qs = {
        random: true
