var {EventEmitter} = require('events')

module.exports = class extends EventEmitter {
  constructor() {
    Object.assign(this, {
      isBot: true,
      name: 'bot',
      packs: [],
      time: 0
    })
  }
  getPack(pack) {
    var score = 99
    var index = 0
    pack.forEach((card, i) => {
      if (card.score < score) {
        score = card.score
        index = i
      }})
    pack.splice(index, 1)
    this.emit('pass', pack)
  }
  send(){}
}

@@ -446,10 +446,20 @@
 end()%7B%7D%0A
+  err()%7B%7D%0A
 %7D%0A

stub err