Skip to content

Purelink v1.1.0

Choose a tag to compare

@Psalm2517 Psalm2517 released this 25 Apr 23:03

🛡️ 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 /purelink command 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.json blacklist.

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_NUKED to correctly distinguish between stripped links and banned domains.
    • Fixed HOPS_TOTAL to accurately track redirect resolution volume.
  • 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.