Advanced Configuration Options

This guide covers advanced configuration options and usage patterns for Kick Bot, helping you fine-tune your bot's behavior and create more sophisticated integrations.

Complete Configuration Reference

Kick Bot supports numerous configuration options. Here's the complete reference:

const bot = createBot({
  // Required Configuration
  clientId: 'your-kick-client-id',           // Kick.com OAuth client ID
  clientSecret: 'your-kick-client-secret',   // Kick.com OAuth client secret
  skillfulApiKey: 'your-skillful-api-key',   // Skillful AI API key
  chatroomId: 'your-chatroom-id',            // Kick.com chatroom ID
  
  // Authentication & Server Options
  redirectUri: 'http://localhost:3000/callback',  // OAuth redirect URI
  serverPort: 3000,                              // Port for the server
  
  // AI Options
  defaultAgent: 'General Assistant',             // Default Skillful agent
  allowAgentChanges: true,                       // Allow viewers to change agents
  
  // Message Options
  maxResponseLength: 500,                        // Maximum message length
  
  // Logging Options
  logLevel: 'info',                              // Log level (error/warn/info/debug/trace)
  debug: false,                                  // Enable debug mode
  
  // Command Options
  enabledCommands: ['8ball', 'imagine']          // Additional commands to enable

  // Enabled / Disable the dashboard
  enableDashboard: true,                         // Enable the web dashboard
  dashboardPassword: 'your-strong-password'      // The password used for access
});

Advanced AI Configuration

Working with Different AI Agents

Kick Bot integrates with Skillful AI, which allows you to create different AI agents with distinct personalities and capabilities.

Advanced Agent Change Control

You can provide fine-grained control over agent changes:

Advanced Logging

KickBot uses a customizable logging system that allows different levels of verbosity for different components.

Available Log Levels

  • error: Only critical errors

  • warn: Errors and warnings

  • info: General information (default)

  • debug: Detailed information for debugging

  • trace: Very verbose, includes all details

Event System

Kick Bot provides an event system that lets you respond to various occurrences:

Command Manager Advanced Usage

The Command Manager provides powerful tools for managing commands:

Dynamic Command Registration

You can dynamically register and manage commands at runtime:

Custom Authentication Flow

For special cases, you can implement a custom authentication flow:

WebSocket Connection Management

For advanced scenarios, you might need more control over the WebSocket connection:

Custom Status Endpoints

Extend the built-in status server with custom endpoints:

Last updated