Skip to content

Commit 6fae982

Browse files
committed
juicy-coupon-bot migrated
1 parent 05f8776 commit 6fae982

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

bin/juicy-coupon-bot.js

-16
This file was deleted.

bin/juicy-coupon-bot.ts

+20
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)