mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-26 23:41:02 +00:00
Refactor: Clean up unused imports and improve code readability across multiple files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user