mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-17 21:43:59 +00:00
added webhooklogexcludefunc (#240)
This commit is contained in:
@@ -19,7 +19,9 @@ export function log(isMobile: boolean | 'main', title: string, message: string,
|
||||
const cleanStr = `[${currentTime}] [PID: ${process.pid}] [${type.toUpperCase()}] ${platformText} [${title}] ${message}`
|
||||
|
||||
// Send the clean string to the Webhook
|
||||
Webhook(configData, cleanStr)
|
||||
if (!configData.webhooklogExcludeFunc.some(x => x.toLowerCase() === title.toLowerCase())) {
|
||||
Webhook(configData, cleanStr)
|
||||
}
|
||||
|
||||
// Formatted string with chalk for terminal logging
|
||||
const str = `[${currentTime}] [PID: ${process.pid}] [${type.toUpperCase()}] ${chalkedPlatform} [${title}] ${message}`
|
||||
@@ -40,4 +42,4 @@ export function log(isMobile: boolean | 'main', title: string, message: string,
|
||||
applyChalk ? console.log(applyChalk(str)) : console.log(str)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user