aboutsummaryrefslogtreecommitdiff
path: root/lib/getURLOfUser.js
blob: 2de48e6dc86fb55e4fa7cbb9c1188a04b06b0946 (plain)
1
2
3
4
5
6
7
8
const leftPad = require('left-pad') // I imported this just to piss you off ;)

function getURLOfUser (type, index, week) {
  return `http://www.meetingpointmco.nl/Roosters-AL/doc/dagroosters/` +
      `${leftPad(week, 2, '0')}/${type}/${type}${leftPad(index + 1, 5, '0')}.htm`
}

module.exports = getURLOfUser