const axios = require('axios');

module.exports = {
  schedule: '0 8 * * 1-5', // runs at 8am Mon-Fri
  handler: async () => {
    try {
      // Make API call to turn on computer
      await axios.post('https://api.example.com/poweron');

      console.log('Computer turned on successfully!');
    } catch (error) {
      console.error(error);
    }
  }
};