Intitial release
This commit is contained in:
parent
299038fbc7
commit
fa8caa5116
21 changed files with 1234 additions and 0 deletions
17
utils/discord_token_validator.py
Normal file
17
utils/discord_token_validator.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class TokenValidationResult:
|
||||
success: bool
|
||||
message: str = ""
|
||||
|
||||
def validate_discord_token(token: str, ignore_api_check=False) -> TokenValidationResult:
|
||||
# Simple validation logic - real implementation would verify with Discord API
|
||||
if len(token) < 50 or '.' not in token:
|
||||
return TokenValidationResult(False, "Invalid token format")
|
||||
|
||||
if ignore_api_check:
|
||||
return TokenValidationResult(True, "Token format valid (API check skipped)")
|
||||
|
||||
# In a real implementation, you would check with Discord API here
|
||||
return TokenValidationResult(True, "Token appears valid")
|
Loading…
Add table
Add a link
Reference in a new issue