mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 06:27:38 +00:00
feat: in stock wait time per link now
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+8
-1
@@ -35,11 +35,18 @@ export const Print = {
|
||||
},
|
||||
inStock(link: Link, store: Store, color?: boolean): string {
|
||||
if (color) {
|
||||
return chalk.green.bold(`🚀🚨 ${buildProductString(link, store, true)} :: IN STOCK 🚨🚀`);
|
||||
return chalk.bgGreen.white.bold(`🚀🚨 ${buildProductString(link, store, false)} :: IN STOCK 🚨🚀`);
|
||||
}
|
||||
|
||||
return `🚀🚨 ${buildProductString(link, store)} :: IN STOCK 🚨🚀`;
|
||||
},
|
||||
inStockWaiting(link: Link, store: Store, color?: boolean): string {
|
||||
if (color) {
|
||||
return 'ℹ ' + buildProductString(link, store, true) + ' :: ' + chalk.yellow('IN STOCK, WAITING');
|
||||
}
|
||||
|
||||
return `ℹ ${buildProductString(link, store)} :: IN STOCK, WAITING`;
|
||||
},
|
||||
outOfStock(link: Link, store: Store, color?: boolean): string {
|
||||
if (color) {
|
||||
return '✖ ' + buildProductString(link, store, true) + ' :: ' + chalk.red('OUT OF STOCK');
|
||||
|
||||
Reference in New Issue
Block a user