#!/usr/bin/env node /* * Copyright (c) 2019-2025 Bjoern Kimminich & the OWASP Juice Shop contributors. * SPDX-License-Identifier: MIT */ import logger from '../lib/logger' import colors from 'colors' import juicyCouponBot from '../index' void (async () => { try { await juicyCouponBot() } catch (error) { if (error instanceof Error) { logger.error( `[${colors.red('💀')}] Critical error: ${colors.red(error.message)}` ) } else { logger.error( `[${colors.red('💀')}] Critical error: ${colors.red('Unknown error')}` ) } process.exit(1) } })()