Skip to content

Releases: VECTOR-CFX/vector_bot

v1.1.0

28 Dec 07:50

Choose a tag to compare

Release v1.1.0

New Features

Giveaway System

A complete, interactive giveaway system has been added to the bot.

  • Command: /giveaway (Staff only) opens a control panel.
  • Create: Setup via a Modal (Title, Description, Reward, Winner Count, Duration).
  • Flexible Duration: Supports flexible formats like 1j (1 day), 1h (1 hour), 30m (30 minutes), and now even short durations like 10s (10 seconds).
  • Participate: Users can join or leave the giveaway by clicking a simple button.
  • Real-time: The participant count updates instantly on the embed.
  • Auto-End:
    • Automatically ends when the timer runs out.
    • Selects random winner(s).
    • Updates the embed to a "Terminated" state with a static completion date.
    • Sends a DM to the winner(s).
  • Logs: Detailed logs for creation, manual deletion, and completion are sent to a configured channel.

Configuration

  • Added giveaway_log_channel_id to config.toml for giveaway logging.

Fixes & Improvements

  • Embed Timestamps: Fixed an issue where the "Ends in" field would show relative time (e.g., "30 seconds ago") after the giveaway ended. It now displays the exact end date and time.
  • Short Duration Support: Increased the background task frequency (from 60s to 5s) to accurately handle short giveaways (e.g., 10 seconds).
  • Duration Parsing: Improved the duration parser to correctly handle unit names like "secondes" without confusing them with days.

Database Changes

  • Added giveaways table: Stores active giveaway details.
  • Added giveaway_participants table: Tracks user participation to ensure unique entries.

v1.0.0

28 Dec 04:01

Choose a tag to compare

Release v1.0.0

This first major release of Vector Bot introduces a comprehensive ticket management system and temporary voice channels, along with an architectural overhaul to use a SQLite database.

New Features

Advanced Ticket System

  • Interactive Creation: Create tickets via Direct Message (DM) with language (FR/EN) and category selection.
  • Channel Management: Automatic creation of private channels with configured permissions for staff and the user.
  • Staff Tools:
    • /rep: Anonymous reply ("Support: Message").
    • /close: Close ticket with full transcript generation (.txt) and detailed logs.
    • /rename: Rename ticket channels.
  • Automation: Automatic reminder after 24h of inactivity and closure after 48h.
  • Moderation: /blticket and /unblticket commands to block access to tickets.

"Join to Create" Voice System

  • Temporary Channels: Automatic creation of a personal voice channel (🔉〢Username) upon joining a hub.
  • Autonomous Management: The creator has moderation permissions (Mute, Deafen, Move, Manage Channels) on their channel.
  • Smart Transfer: If the owner leaves, ownership is automatically transferred to another present member.
  • Cleanup: Automatic deletion of the channel when empty.
  • Logs: Full tracking of creations, deletions, and transfers.

Utility Commands

  • /info: Complete bot statistics (Uptime, Latency, RAM, CPU, Active tickets, Blacklists).
  • /profil: Detailed user profile (Dates, Staff/Client Roles, Blacklist Status).
  • /clear: Bulk message deletion.

Architecture & Technical

  • SQLite Database: Full migration to SQL (database.db) for robust data persistence (Tickets, Blacklist, Voice Channels).
  • TOML Configuration: Centralized config.toml file to manage IDs (Roles, Channels, Categories).
  • Clean Codebase: Modular refactoring, removal of obsolete JSON structures, and improved error handling.

Installation

  1. Download the binaries or clone the repository.
  2. Configure your .env and config.toml.
  3. Launch the bot (the database will initialize automatically).

Note: This version uses "Privileged Gateway Intents" for certain features. Ensure they are enabled on the Discord Developer Portal.