We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05f8776 commit 6fae982Copy full SHA for 6fae982
bin/juicy-coupon-bot.js
bin/juicy-coupon-bot.ts
@@ -0,0 +1,20 @@
1
+#!/usr/bin/env node
2
+
3
+/*
4
+ * Copyright (c) 2019-2024 Bjoern Kimminich & the OWASP Juice Shop contributors.
5
+ * SPDX-License-Identifier: MIT
6
+ */
7
8
+import logger from '../lib/logger.ts'
9
+import colors from 'colors'
10
+import juicyCouponBot from '../index.ts'
11
12
+try {
13
+ juicyCouponBot()
14
+} catch (error) {
15
+ if (error instanceof Error) {
16
+ logger.error(`[${colors.red('💀')}] Critical error: ${colors.red(error.message)}`)
17
+ } else {
18
+ logger.error(`[${colors.red('💀')}] Critical error: ${colors.red('Unknown error')}`)
19
+ }
20
+}
0 commit comments