korisya/kensaku

Refactor all machine configs to read from a config file

Closed this issue · 2 comments

All (repeated) channel-specific code should be removed, in favor of keeping all configs in some kind of config file.

Something like the following

const locations = [
  {
    id: 'round1-sanjose'
    name: 'Round 1 San Jose'
    cookie: ['M573SSID-cookie-goes-here']
    timeZone: 'America/Los_Angeles'
  },
  {
    id: 'dnb-milpitas'
    name: 'D&B Milpitas'
    cookie: 'M573SSID-cookie-goes-here'
    timeZone: 'America/Los_Angeles'
  }
];

note that cookie can be a string or an array of strings (representing multiple e-amusement accounts, representing multiple machines at a single location)

Need to update README

README update in #34