Chat -Commands

Lillo's chat system includes a comprehensive set of commands for managing conversations, interactions, and bot behavior.

Overview

These commands provide granular control over chat behavior, message handling, bot responses, and agent configurations.

Core Commands

Message Control

/msg

  • Description: Send a message to the community

  • Usage: /msg <message>

  • Access: DM only

  • Example:

    /msg Hello everyone! Welcome to our community!

Chat Management

/settings

  • Description: Configure chat settings

  • Usage: /settings

  • Access: Admin only

  • Options:

    • Model preferences

    • Response style

    • Function permissions

    • Agent configuration

    • Rate limits

/clear

  • Description: Clear recent chat history

  • Usage: /clear [number]

  • Access: Admin only

  • Parameters:

    • number: Optional, number of messages to clear (default: 50)

Agent Management

/myagents

  • Description: List and manage your agents

  • Usage: /myagents

  • Access: All users

  • Features:

    • View active agents

    • Switch agents

    • Configure agent settings

/newagent

  • Description: Create a new agent

  • Usage: /newagent

  • Access: Admin only

  • Steps:

    1. Token verification

    2. Personality setup

    3. Social configuration

    4. Crypto settings

Function Integration

Image Generation

Weather Data

Market Data

Time Information

Command Handling

Command Context

Command Response

Command Handler

Response Formatting

User Mentions

  • Format: {mention:USER_ID:USER_NAME}

  • Example: {mention:123456:John}

  • Usage: Direct user references in responses

Message Structure

Command Metrics

Metrics Collection

Storage

Error Handling

Rate Limiting

Content Policy

Permission Errors

Best Practices

  1. Command Usage

    • Use commands in appropriate contexts

    • Follow rate limiting guidelines

    • Check command permissions

    • Validate input parameters

    • Handle all error cases

  2. Message Formatting

    • Use proper mention syntax

    • Include necessary context

    • Follow response guidelines

    • Escape special characters

    • Handle markdown/HTML properly

  3. Error Recovery

    • Handle errors gracefully

    • Provide clear error messages

    • Implement retry logic

    • Log failures appropriately

    • Maintain user experience

  4. Performance

    • Cache command results

    • Use efficient queries

    • Implement timeouts

    • Handle concurrent requests

    • Monitor execution times

Last updated