Purelink v1.1.0
🛡️ Purelink v1.1.0
Core Enhancements
- Infrastructure Modularization: Successfully separated the bot into three distinct layers:
main.py: Core logic (redirection/purification/nuking).api_plugin.py: Background monitoring and stats API.slash_commands.py: Native application command definitions.
- Non-Invasive "Guard" System: Implemented a channel/user ignore system that intercepts messages via a monkey-patch, allowing for custom filtering without modifying the core bot logic.
Features & Commands
- Native Slash Commands: Upgraded from text-based triggers to official Discord Slash Commands (
/purelink,/ignore_channel,/ignore_user). - Professional Branding: Refactored the
/purelinkcommand into a high-quality Discord Embed featuring:- Embedded logo thumbnail support.
- Direct links to the GitHub Repository, Live Stats Page, and Bot Invite.
- Dynamic Ignore Management: Admin-only slash commands to dynamically add users or channels to the
ignore.jsonblacklist.
Reliability & Performance
- Persistence Layer: Added a server-side storage engine (
stats_cache.json) that restores cumulative statistics (links cleaned, detected, etc.) automatically after bot restarts. - Metrics Hardening:
- Fixed
LINKS_NUKEDto correctly distinguish between stripped links and banned domains. - Fixed
HOPS_TOTALto accurately track redirect resolution volume.
- Fixed
- Instance Locking: Implemented a PID-based lockfile to prevent double-posting caused by multiple bot instances.
Known Issues:
- Unsupported Domains: We maintain a live list of domains that currently block resolution: unsupported.md
Clean links. Better privacy. Purelink.