Refactor: Clean up unused imports and improve code readability across multiple files

This commit is contained in:
2025-11-03 19:52:27 +01:00
parent a932f48425
commit baf25103f7
6 changed files with 15 additions and 22 deletions

View File

@@ -1,10 +1,10 @@
/**
* Central constants file for the Microsoft Rewards Script
* Defines timeouts, retry limits, and other magic numbers used throughout the application
* Central constants for the Microsoft Rewards Script
* All timeouts, retry limits, delays, selectors, and other magic numbers are defined here
*/
/**
* Safe environment variable parsing with validation
* Parse environment variable as number with validation
*/
function parseEnvNumber(key: string, defaultValue: number, min: number, max: number): number {
const raw = process.env[key]
@@ -86,4 +86,4 @@ export const DISCORD = {
COLOR_BLUE: 0x3498DB,
COLOR_GREEN: 0x00D26A,
AVATAR_URL: 'https://media.discordapp.net/attachments/1421163952972369931/1434918661235282144/logo.png?ex=690a13a4&is=6908c224&hm=6bae81966da32e73a647f46fde268011fcf460c7071082dd5fd76cf22d04af65&=&format=png&quality=lossless&width=653&height=638'
} as const
} as const