Hex AI Add-On - Source Code Banner

The Hex AI Add-On is a feature-rich extension designed to enhance your Drako Bot’s capabilities, enabling seamless interactions with users through OpenAI’s advanced AI technology. With persistent storage, user tagging, conversational context awareness, and an auto-tagging system, this add-on delivers a dynamic and engaging user experience.


Key Features

1. Conversational AI

  • OpenAI Integration: Utilizes OpenAI’s GPT model to generate intelligent, context-aware responses.
  • Customizable AI Settings:
    • temperature: Adjust response creativity.
    • max_tokens: Limit response length.
    • presence_penalty: Control topic diversity.
    • frequency_penalty: Avoid repetitive content.

2. User Context Awareness

  • Message History Tracking: Maintains up to maxHistoryLength messages per user for continuity in conversations.
  • Personalized Interactions: Tailors responses based on the user’s message history for a conversational and interactive experience.

3. Persistent Data Management

  • PersistentStorage Class: Ensures data (e.g., tagging history) is saved across bot restarts.
  • Error Handling: Securely manages read/write operations to prevent data corruption.

4. Random User Tagging

  • UserSelector Class:
    • Excludes recently tagged users using the tagCooldown setting.
    • Randomly selects eligible users for engaging interactions.
  • Auto-Tagging System:
    • Automatically tags users at intervals specified by the tagInterval setting.
    • Starts tagging cycles based on the last tag time to avoid excessive tagging.

5. Flexible Configuration

  • YAML-Based Configuration File: Simplifies setup with intuitive settings for:
    • AI model and key.
    • Message handling behavior.
    • Auto-tagging preferences.
  • Editable Timing Intervals: Offers precise control over cooldowns and tagging intervals in milliseconds.

6. Advanced Error Handling

  • Logs and manages errors in API calls, file operations, and message handling to enhance stability.
  • Provides fallback responses during OpenAI API failures, ensuring uninterrupted interactions.

7. Realistic Bot Behavior

  • Typing Simulation: Delays responses using the typingDelay setting for a human-like experience.
  • Custom Prompts for Tagging: Creates engaging conversation starters for auto-tagged users.

8. Developer-Friendly Architecture

  • Modular Design: Cleanly separated classes and methods for easy modification and extension.
  • Retry Logic: Retries failed authentication or API calls up to maxRetries times before reporting errors.
  • Rich Logging: Colored console outputs for streamlined debugging and monitoring.

Use Cases

  • Community Engagement: Automatically starts conversations with server members to keep chats active and welcoming.
  • Support Bots: Provides intelligent, context-aware answers to user queries.
  • Entertainment Bots: Engages users with creative and entertaining conversations.

How It Works

1. Message Processing

  • Monitors messages mentioning the bot.
  • Cleans and processes content.
  • Sends content to OpenAI for response generation.

2. Auto-Tagging

  • Periodically selects and tags a random eligible user.
  • Tags the user in the target channel with a personalized AI-generated message.

3. Persistent Data Management

  • Locally stores the last tag timestamp and user tagging history.
  • Maintains bot state across restarts.

4. Customization

  • Configurable via a YAML file to adapt to different server environments and AI use cases.

Why Choose Hex AI Add-On?

  • Enhances user engagement with intelligent, human-like interactions.
  • Fully customizable to match your server’s unique needs.
  • Reliable and efficient, featuring robust error handling and modular design.

Transform your Drako Bot into a smarter, more engaging assistant with the Hex AI Add-On!

$15.00

Hex AI Add-On - Source Code